diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-02-20 05:59:56 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-20 05:59:56 -0800 |
| commit | b838bf1938926a7a900166136d995d86f8a00e24 (patch) | |
| tree | b6d565c3dcd2657c6a94f9e81b35ee8ebddaef9f /gitk-git/generate-tcl.sh | |
| parent | a554262210b4a2ee6fa2d594e1f09f5830888c56 (diff) | |
| parent | 4a6cc6a20eeb593f1ad0f60475a9867532d7c5d5 (diff) | |
| download | git-b838bf1938926a7a900166136d995d86f8a00e24.tar.gz | |
Merge branch 'master' of https://github.com/j6t/gitk
* 'master' of https://github.com/j6t/gitk:
gitk: introduce support for the Meson build system
gitk: extract script to build executable
gitk: make the "list references" default window width wider
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
gitk: Use an external icon file on Windows
gitk: Unicode file name support
gitk(Windows): avoid inadvertently calling executables in the worktree
Diffstat (limited to 'gitk-git/generate-tcl.sh')
| -rwxr-xr-x | gitk-git/generate-tcl.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitk-git/generate-tcl.sh b/gitk-git/generate-tcl.sh new file mode 100755 index 0000000000..46bba6d246 --- /dev/null +++ b/gitk-git/generate-tcl.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +WISH=$(echo "$1" | sed 's/|/\\|/g') +INPUT="$2" +OUTPUT="$3" + +sed -e "1,3s|^exec .* \"\$0\"|exec $WISH \"\$0\"|" "$INPUT" >"$OUTPUT"+ +chmod a+x "$OUTPUT"+ +mv "$OUTPUT"+ "$OUTPUT" |
