mirror of
https://github.com/git/git.git
synced 2025-12-23 12:14:22 +01:00
63 lines
1.1 KiB
Bash
Executable File
63 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# DDD=' -DUSE_SYMLINK_HEAD=0'
|
|
# PATH=/usr/bin:/bin
|
|
|
|
G=/opt/packrat/playpen/public/in-place/git/index/gitweb_config.perl
|
|
PATH=$HOME/git-master/bin:/usr/bin:/bin
|
|
LANG=C
|
|
LC_CTYPE=C
|
|
export PATH LANG LC_CTYPE
|
|
|
|
# for now...
|
|
#GIT_SVN_NO_LIB=1
|
|
#export GIT_SVN_NO_LIB
|
|
|
|
head=`git symbolic-ref HEAD` &&
|
|
branch=`expr "$head" : 'refs/heads/\(.*\)'` &&
|
|
case "$branch" in
|
|
next | maint | master | pu)
|
|
d="prefix=$HOME/git-$branch" ;;
|
|
snap)
|
|
v=`git describe HEAD`
|
|
expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
|
|
echo >&2 "You are on 'snap' but $v is not an official version."
|
|
exit 1
|
|
}
|
|
d="prefix=$HOME/git-snap-$v"
|
|
;;
|
|
*)
|
|
d="prefix=$HOME/git-test" ;;
|
|
esac
|
|
|
|
: ${O=-O2}
|
|
|
|
while case $# in 0) break ;; esac
|
|
do
|
|
case "$1" in
|
|
-pedantic)
|
|
O="$O -Werror -ansi -pedantic -std=c99 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE"
|
|
;;
|
|
--)
|
|
shift
|
|
break
|
|
;;
|
|
-*)
|
|
echo >&2 "Eh $1?"
|
|
exit 1
|
|
;;
|
|
*)
|
|
break
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
make $d \
|
|
GITWEB_CONFIG=$G \
|
|
PYTHON_PATH=/usr/bin/python2.4 \
|
|
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
|
|
WITH_SEND_EMAIL=YesPlease \
|
|
WITH_SVNIMPORT=YesPlease \
|
|
"$@"
|