Update dodoc to point older documentations from the latest.
[git/spearce.git] / Make
blobfabe6418d15c2567688ae1db5fde7515472df052
1 #!/bin/sh
3 # DDD=' -DUSE_SYMLINK_HEAD=0'
4 # PATH=/usr/bin:/bin
6 G=/opt/packrat/playpen/public/in-place/git/index/gitweb_config.perl
7 PATH=$HOME/git-master/bin:/usr/bin:/bin
8 LANG=C
9 LC_CTYPE=C
10 export PATH LANG LC_CTYPE
12 # for now...
13 #GIT_SVN_NO_LIB=1
14 #export GIT_SVN_NO_LIB
16 head=`git symbolic-ref HEAD` &&
17 branch=`expr "$head" : 'refs/heads/\(.*\)'` &&
18 case "$branch" in
19 next | maint | master | pu)
20 d="prefix=$HOME/git-$branch" ;;
21 snap)
22 v=`git describe HEAD`
23 expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
24 echo >&2 "You are on 'snap' but $v is not an official version."
25 exit 1
27 d="prefix=$HOME/git-snap-$v"
30 d="prefix=$HOME/git-test" ;;
31 esac
33 : ${O=-O2}
35 while case $# in 0) break ;; esac
36 do
37 case "$1" in
38 -pedantic)
39 O="$O -Werror -ansi -pedantic -std=c99 -D_XOPEN_SOURCE=600"
41 --)
42 shift
43 break
45 -*)
46 echo >&2 "Eh $1?"
47 exit 1
50 break
51 ;;
52 esac
53 shift
54 done
56 make $d \
57 GITWEB_CONFIG=$G \
58 PYTHON_PATH=/usr/bin/python2.4 \
59 CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
60 WITH_SEND_EMAIL=YesPlease \
61 WITH_SVNIMPORT=YesPlease \
62 "$@"