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 <ps@pks.im>

Patrick Steinhardt committed Mar 11, 2025 at 11:07 UTC 3e656a43567b7d0f82e99d56b1a268feb789abff
1 file changed -2
Makefile
-2
@@ -134,7 +134,6 @@ libdir_SQ = $(subst ','\'',$(gg_libdir))
134 libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir_sed_in)))
135 exedir = $(dir $(gitexecdir))share/git-gui/lib
136
137 -GITGUI_SCRIPT := $$0
137 GITGUI_RELATIVE :=
138 GITGUI_MACOSXAPP :=
139
@@ -206,7 +205,6 @@ $(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
205 $(QUIET_GEN)rm -f $@ $@+ && \
206 sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
207 -e 's|@@SHELL_PATH@@|$(SHELL_PATH_SQ)|' \
209 - -e '1,30s|^ argv0=$$0| argv0=$(GITGUI_SCRIPT)|' \
208 -e '1,30s|^ exec wish | exec '\''$(TCLTK_PATH_SED)'\'' |' \
209 -e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
210 -e 's|@@GITGUI_RELATIVE@@|$(GITGUI_RELATIVE)|' \