Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/tools/generate-script.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / tools / generate-script.sh` 34 lines ยท 661 bytes Raw Blame History 1 #!/bin/sh 2 3 set -e 4 5 if test $# -ne 3 6 then 7 echo >&2 "USAGE: $0 " 8 exit 1 9 fi 10 11 INPUT="$1" 12 OUTPUT="$2" 13 BUILD_OPTIONS="$3" 14 15 . "$BUILD_OPTIONS" 16 17 sed -e "1s|#!.*/sh|#!$SHELL_PATH|" \ 18 -e "s|@SHELL_PATH@|$SHELL_PATH|" \ 19 -e "s|@DIFF@|$DIFF|" \ 20 -e "s|@LOCALEDIR@|$LOCALEDIR|g" \ 21 -e "s/@USE_GETTEXT_SCHEME@/$USE_GETTEXT_SCHEME/g" \ 22 -e "$BROKEN_PATH_FIX" \ 23 -e "s|@GITWEBDIR@|$GITWEBDIR|g" \ 24 -e "s|@PERL_PATH@|$PERL_PATH|g" \ 25 -e "s|@PAGER_ENV@|$PAGER_ENV|g" \ 26 "$INPUT" >"$OUTPUT" 27 28 case "$(basename "$INPUT")" in 29 git-mergetool--lib.sh|git-sh-i18n.sh|git-sh-setup.sh) 30 ;; 31 *) 32 chmod a+x "$OUTPUT" 33 ;; 34 esac