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 / tools / generate-python.sh

20 lines · 294 bytes Raw Blame History
1#!/bin/sh
2
3set -e
4
5if test $# -ne 3
6then
7 echo >&2 "USAGE: $0 <GIT_BUILD_OPTIONS> <INPUT> <OUTPUT>"
8 exit 1
9fi
10
11GIT_BUILD_OPTIONS="$1"
12INPUT="$2"
13OUTPUT="$3"
14
15. "$GIT_BUILD_OPTIONS"
16
17sed -e "1s|#!.*python|#!$PYTHON_PATH|" \
18 "$INPUT" >"$OUTPUT+"
19chmod a+x "$OUTPUT+"
20mv "$OUTPUT+" "$OUTPUT"