mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
* 'master' of https://github.com/j6t/git-gui: git-gui: wire up support for the Meson build system git-gui: stop including GIT-VERSION-FILE file git-gui: extract script to generate macOS app git-gui: extract script to generate macOS wrapper git-gui: extract script to generate "tclIndex" git-gui: extract script to generate "git-gui" git-gui: drop no-op GITGUI_SCRIPT replacement git-gui: make output of GIT-VERSION-GEN source'able git-gui: prepare GIT-VERSION-GEN for out-of-tree builds git-gui: replace GIT-GUI-VARS with GIT-GUI-BUILD-OPTIONS
30 lines
605 B
Bash
Executable File
30 lines
605 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if test "$#" -ne 4
|
|
then
|
|
echo >&2 "usage: $0 <INPUT> <OUTPUT> <BUILD_OPTIONS> <VERSION_FILE>"
|
|
exit 1
|
|
fi
|
|
|
|
INPUT="$1"
|
|
OUTPUT="$2"
|
|
BUILD_OPTIONS="$3"
|
|
VERSION_FILE="$4"
|
|
|
|
. "${BUILD_OPTIONS}"
|
|
. "${VERSION_FILE}"
|
|
|
|
rm -f "$OUTPUT" "$OUTPUT+"
|
|
sed \
|
|
-e "1s|#!.*/sh|#!$SHELL_PATH|" \
|
|
-e "s|@@SHELL_PATH@@|$SHELL_PATH|" \
|
|
-e "1,30s|^ exec wish | exec '$TCLTK_PATH' |" \
|
|
-e "s|@@GITGUI_VERSION@@|$GITGUI_VERSION|g" \
|
|
-e "s|@@GITGUI_RELATIVE@@|$GITGUI_RELATIVE|" \
|
|
-e "${GITGUI_RELATIVE}s|@@GITGUI_LIBDIR@@|$GITGUI_LIBDIR|" \
|
|
"$INPUT" >"$OUTPUT"+
|
|
chmod +x "$OUTPUT"+
|
|
mv "$OUTPUT"+ "$OUTPUT"
|