mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Extract the scrip that "builds" Gitk from our Makefile so that we can reuse it in Meson. Signed-off-by: Patrick Steinhardt <ps@pks.im>
12 lines
196 B
Bash
Executable File
12 lines
196 B
Bash
Executable File
#!/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"
|