@matheusbsbs / matheus-bagliano / commits / d9bffc08fd
Fork 0

Using 'perl' in *.sh

Some GIT's shell script are using bare 'perl' for perl invocation. Use @@PERL@@ symbol and replace it with PERL_PATH_SQ everywhere. Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Michal Rokos committed Jul 8, 2006 at 17:32 UTC d9bffc08fd2cec626e3a390fa4cc47587a8c7f9e
6 files changed +6 -5
Makefile
+1
@@ -514,6 +514,7 @@ common-cmds.h: Documentation/git-*.txt
514 $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
515 rm -f $@ $@+
516 sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
517 + -e 's|@@PERL@@|$(PERL_PATH_SQ)|g' \
518 -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
519 -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
520 -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \
git-bisect.sh
+1 -1
@@ -13,7 +13,7 @@ git bisect log show bisect log.'
13 . git-sh-setup
14
15 sq() {
16 - perl -e '
16 + @@PERL@@ -e '
17 for (@ARGV) {
18 s/'\''/'\'\\\\\'\''/g;
19 print " '\''$_'\''";
git-clone.sh
+1 -1
@@ -324,7 +324,7 @@ test -d "$GIT_DIR/refs/reference-tmp" && rm -fr "$GIT_DIR/refs/reference-tmp"
324 if test -f "$GIT_DIR/CLONE_HEAD"
325 then
326 # Read git-fetch-pack -k output and store the remote branches.
327 - perl -e "$copy_refs" "$GIT_DIR" "$use_separate_remote" "$origin"
327 + @@PERL@@ -e "$copy_refs" "$GIT_DIR" "$use_separate_remote" "$origin"
328 fi
329
330 cd "$D" || exit
git-commit.sh
+1 -1
@@ -147,7 +147,7 @@ run_status () {
147 git-ls-files -z --others $option \
148 --exclude-per-directory=.gitignore
149 fi |
150 - perl -e '$/ = "\0";
150 + @@PERL@@ -e '$/ = "\0";
151 my $shown = 0;
152 while (<>) {
153 chomp;
git-fetch.sh
+1 -1
@@ -278,7 +278,7 @@ fetch_main () {
278 head="ref: $remote_name"
279 while (expr "z$head" : "zref:" && expr $depth \< $max_depth) >/dev/null
280 do
281 - remote_name_quoted=$(perl -e '
281 + remote_name_quoted=$(@@PERL@@ -e '
282 my $u = $ARGV[0];
283 $u =~ s/^ref:\s*//;
284 $u =~ s{([^-a-zA-Z0-9/.])}{sprintf"%%%02x",ord($1)}eg;
git-rebase.sh
+1 -1
@@ -311,7 +311,7 @@ echo "$prev_head" > "$dotest/prev_head"
311
312 msgnum=0
313 for cmt in `git-rev-list --no-merges "$upstream"..ORIG_HEAD \
314 - | perl -e 'print reverse <>'`
314 + | @@PERL@@ -e 'print reverse <>'`
315 do
316 msgnum=$(($msgnum + 1))
317 echo "$cmt" > "$dotest/cmt.$msgnum"