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/git-gui/generate-git-gui.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 / git-gui / generate-git-gui.sh` 29 lines ยท 605 bytes Raw Blame History 1 #!/bin/sh 2 3 set -e 4 5 if test "$#" -ne 4 6 then 7 echo >&2 "usage: $0 " 8 exit 1 9 fi 10 11 INPUT="$1" 12 OUTPUT="$2" 13 BUILD_OPTIONS="$3" 14 VERSION_FILE="$4" 15 16 . "${BUILD_OPTIONS}" 17 . "${VERSION_FILE}" 18 19 rm -f "$OUTPUT" "$OUTPUT+" 20 sed \ 21 -e "1s|#!.*/sh|#!$SHELL_PATH|" \ 22 -e "s|@@SHELL_PATH@@|$SHELL_PATH|" \ 23 -e "1,30s|^ exec wish | exec '$TCLTK_PATH' |" \ 24 -e "s|@@GITGUI_VERSION@@|$GITGUI_VERSION|g" \ 25 -e "s|@@GITGUI_RELATIVE@@|$GITGUI_RELATIVE|" \ 26 -e "${GITGUI_RELATIVE}s|@@GITGUI_LIBDIR@@|$GITGUI_LIBDIR|" \ 27 "$INPUT" >"$OUTPUT"+ 28 chmod +x "$OUTPUT"+ 29 mv "$OUTPUT"+ "$OUTPUT"