File tree Expand file tree Collapse file tree 5 files changed +42
-10
lines changed Expand file tree Collapse file tree 5 files changed +42
-10
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ git-gui.tcl
4
4
GIT-GUI-BUILD-OPTIONS
5
5
GIT-VERSION-FILE
6
6
git-gui
7
+ git-gui--askpass
7
8
lib /tclIndex
Original file line number Diff line number Diff line change @@ -173,10 +173,13 @@ GIT-GUI-BUILD-OPTIONS: FORCE
173
173
@if grep -q ' ^[A-Z][A-Z_]*=@.*@$$' $@ +; then echo " Unsubstituted build options in $@ " >&2 && exit 1; fi
174
174
@if cmp $@ + $@ > /dev/null 2>&1 ; then $(RM ) $@ +; else mv $@ + $@ ; fi
175
175
176
+ git-gui--askpass : git-gui--askpass.sh GIT-GUI-BUILD-OPTIONS generate-script.sh
177
+ $(QUIET_GEN )$(SHELL_PATH ) generate-script.sh $@ $< ./GIT-GUI-BUILD-OPTIONS
178
+
176
179
ifdef GITGUI_WINDOWS_WRAPPER
177
180
all :: git-gui
178
181
endif
179
- all :: $(GITGUI_MAIN ) lib/tclIndex $(ALL_MSGFILES )
182
+ all :: $(GITGUI_MAIN ) git-gui--askpass lib/tclIndex $(ALL_MSGFILES )
180
183
181
184
install : all
182
185
$(QUIET )$(INSTALL_D0 ) ' $(DESTDIR_SQ)$(gitexecdir_SQ)' $(INSTALL_D1 )
@@ -215,7 +218,7 @@ dist-version: GIT-VERSION-FILE
215
218
@sed ' s|^GITGUI_VERSION=||' < GIT-VERSION-FILE > $(TARDIR ) /version
216
219
217
220
clean ::
218
- $(RM_RF ) $(GITGUI_MAIN ) lib/tclIndex po/* .msg $(PO_TEMPLATE )
221
+ $(RM_RF ) $(GITGUI_MAIN ) git-gui--askpass lib/tclIndex po/* .msg $(PO_TEMPLATE )
219
222
$(RM_RF ) GIT-VERSION-FILE GIT-GUI-BUILD-OPTIONS
220
223
ifdef GITGUI_WINDOWS_WRAPPER
221
224
$(RM_RF) git-gui
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ if test $# -ne 3
6
+ then
7
+ echo >&2 " USAGE: $0 <OUTPUT> <INPUT> <GIT-GUI-BUILD-OPTIONS>"
8
+ exit 1
9
+ fi
10
+
11
+ OUTPUT=" $1 "
12
+ INPUT=" $2 "
13
+ BUILD_OPTIONS=" $3 "
14
+
15
+ . " $BUILD_OPTIONS "
16
+
17
+ sed \
18
+ -e " 1s|#!.*/sh|#!$SHELL_PATH |" \
19
+ -e " 1,3s|^exec wish|exec '$TCLTK_PATH '|" \
20
+ " $INPUT " > " $OUTPUT "
21
+
22
+ chmod a+x " $OUTPUT "
File renamed without changes.
Original file line number Diff line number Diff line change @@ -38,14 +38,6 @@ version_file = custom_target(
38
38
build_always_stale : true ,
39
39
)
40
40
41
- configure_file (
42
- input : ' git-gui--askpass' ,
43
- output : ' git-gui--askpass' ,
44
- copy : true ,
45
- install : true ,
46
- install_dir : get_option (' libexecdir' ) / ' git-core' ,
47
- )
48
-
49
41
gitgui_main = ' git-gui'
50
42
gitgui_main_install_dir = get_option (' libexecdir' ) / ' git-core'
51
43
@@ -61,6 +53,20 @@ if target_machine.system() == 'windows'
61
53
)
62
54
endif
63
55
56
+ custom_target (
57
+ output : ' git-gui--askpass' ,
58
+ input : ' git-gui--askpass.sh' ,
59
+ command : [
60
+ shell,
61
+ meson .current_source_dir() / ' generate-script.sh' ,
62
+ ' @OUTPUT@' ,
63
+ ' @INPUT@' ,
64
+ meson .current_build_dir() / ' GIT-GUI-BUILD-OPTIONS' ,
65
+ ],
66
+ install : true ,
67
+ install_dir : get_option (' libexecdir' ) / ' git-core' ,
68
+ )
69
+
64
70
custom_target (
65
71
input : ' git-gui.sh' ,
66
72
output : gitgui_main,
You can’t perform that action at this time.
0 commit comments