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/gitk-git/generate-tcl.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 / gitk-git / generate-tcl.sh` 11 lines ยท 196 bytes Raw Blame History 1 #!/bin/sh 2 3 set -e 4 5 WISH=$(echo "$1" | sed 's/|/\\|/g') 6 INPUT="$2" 7 OUTPUT="$3" 8 9 sed -e "1,3s|^exec .* \"\$0\"|exec $WISH \"\$0\"|" "$INPUT" >"$OUTPUT"+ 10 chmod a+x "$OUTPUT"+ 11 mv "$OUTPUT"+ "$OUTPUT"