git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / gitk-git / generate-tcl.sh
| 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" |