interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / git-gui / generate-script.sh

22 lines · 305 bytes Raw Blame History
1#!/bin/sh
2
3set -e
4
5if test $# -ne 3
6then
7 echo >&2 "USAGE: $0 <OUTPUT> <INPUT> <GIT-GUI-BUILD-OPTIONS>"
8 exit 1
9fi
10
11OUTPUT="$1"
12INPUT="$2"
13BUILD_OPTIONS="$3"
14
15. "$BUILD_OPTIONS"
16
17sed \
18 -e "1s|#!.*/sh|#!$SHELL_PATH|" \
19 -e "1,3s|^exec wish|exec '$TCLTK_PATH'|" \
20 "$INPUT" >"$OUTPUT"
21
22chmod a+x "$OUTPUT"