File: generate-script.sh

package info (click to toggle)
git 1%3A2.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 61,616 kB
  • sloc: ansic: 304,617; sh: 259,866; perl: 25,871; tcl: 21,754; makefile: 4,158; python: 3,442; javascript: 772; csh: 45
file content (22 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if test $# -ne 3
then
	echo >&2 "USAGE: $0 <OUTPUT> <INPUT> <GIT-GUI-BUILD-OPTIONS>"
	exit 1
fi

OUTPUT="$1"
INPUT="$2"
BUILD_OPTIONS="$3"

. "$BUILD_OPTIONS"

sed \
	-e "1s|#!.*/sh|#!$SHELL_PATH|" \
	-e "1,3s|^exec wish|exec '$TCLTK_PATH'|" \
	"$INPUT" >"$OUTPUT"

chmod a+x "$OUTPUT"