Files
git-mirror/generate-tcl.sh
Patrick Steinhardt 0d4fe3047f gitk: extract script to build executable
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>
2025-02-20 08:52:07 +01:00

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"