Git fork
at reftables-rust 22 lines 305 B view raw
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"