Skip to content

Commit 3e656a4

Browse files
committed
git-gui: drop no-op GITGUI_SCRIPT replacement
The value of the GITGUI_SCRIPT variable is only used in a single place as part of an sed(1) script that massages the "git-gui.sh" script. Interestingly, this specific replacement does seem to be a no-op: we replace "^ argv0=$$0" with " argv=$(GITGUI_SCRIPT)", which has a value of "$$0". The result would thus be completely unchanged. Drop the replacement and its variable. Signed-off-by: Patrick Steinhardt <[email protected]>
1 parent caf5fbe commit 3e656a4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ libdir_SQ = $(subst ','\'',$(gg_libdir))
134134
libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir_sed_in)))
135135
exedir = $(dir $(gitexecdir))share/git-gui/lib
136136

137-
GITGUI_SCRIPT := $$0
138137
GITGUI_RELATIVE :=
139138
GITGUI_MACOSXAPP :=
140139

@@ -206,7 +205,6 @@ $(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
206205
$(QUIET_GEN)rm -f $@ $@+ && \
207206
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
208207
-e 's|@@SHELL_PATH@@|$(SHELL_PATH_SQ)|' \
209-
-e '1,30s|^ argv0=$$0| argv0=$(GITGUI_SCRIPT)|' \
210208
-e '1,30s|^ exec wish | exec '\''$(TCLTK_PATH_SED)'\'' |' \
211209
-e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
212210
-e 's|@@GITGUI_RELATIVE@@|$(GITGUI_RELATIVE)|' \

0 commit comments

Comments
 (0)