Skip to content

Commit 389f845

Browse files
committed
Meta/Make: do not depend on installed git
1 parent 8f92733 commit 389f845

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Make

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# PATH=/usr/bin:/bin
55

66
G=/opt/packrat/playpen/public/in-place/git/index/gitweb_config.perl
7-
PATH=$HOME/git-master/bin:/usr/bin:/bin
7+
GIT=$HOME/git-master/bin/git
8+
PATH=/usr/bin:/bin
89
LANG=C
910
LC_CTYPE=C
1011
export PATH LANG LC_CTYPE
@@ -15,14 +16,14 @@ export PATH LANG LC_CTYPE
1516

1617
old_style_def_fix=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
1718

18-
head=`git symbolic-ref HEAD 2>/dev/null` &&
19+
head=`$GIT symbolic-ref HEAD 2>/dev/null` &&
1920
branch=`expr "$head" : 'refs/heads/\(.*\)'` || branch=detached
2021

2122
case "$branch" in
2223
next | maint | master | pu)
2324
d="prefix=$HOME/git-$branch" ;;
2425
snap)
25-
v=`git describe HEAD`
26+
v=`$GIT describe HEAD`
2627
expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
2728
echo >&2 "You are on 'snap' but $v is not an official version."
2829
exit 1
@@ -40,8 +41,8 @@ do
4041
case "$1" in
4142
-pedantic)
4243
o= &&
43-
rev=$(git-rev-parse HEAD) &&
44-
case "$(git-merge-base "$old_style_def_fix" "$rev")" in
44+
rev=$($GIT rev-parse HEAD) &&
45+
case "$($GIT merge-base "$old_style_def_fix" "$rev")" in
4546
$old_style_def_fix)
4647
o=-Wold-style-definition ;;
4748
esac
@@ -63,6 +64,8 @@ do
6364
shift
6465
done
6566

67+
$GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version
68+
6669
make $d \
6770
GITWEB_CONFIG=$G \
6871
PYTHON_PATH=/usr/bin/python2.4 \

0 commit comments

Comments
 (0)