snapshot
[git] / Make
1 #!/bin/sh
2
3 # DDD=' -DUSE_SYMLINK_HEAD=0'
4 # PATH=/usr/bin:/bin
5 PATH=$HOME/bin/Linux:/usr/bin:/bin
6 LANG=C
7 LC_CTYPE=C
8 export PATH LANG LC_CTYPE
9
10 # for now...
11 #GIT_SVN_NO_LIB=1
12 #export GIT_SVN_NO_LIB
13
14 case "`git symbolic-ref HEAD`" in
15 refs/heads/next)
16         d="bindir=$HOME/bin/Linux gitexecdir=$HOME/bin/Linux" ;;
17 refs/heads/maint)
18         d="prefix=$HOME/git-maint" ;;
19 refs/heads/master)
20         d="prefix=$HOME/git-master" ;;
21 refs/heads/pu)
22         d="prefix=$HOME/git-pu" ;;
23 *)
24         d="prefix=$HOME/git-test" ;;
25 esac
26
27 while case $# in 0) break ;; esac
28 do 
29         case "$1" in
30         -pedantic)
31                 O="$O -Werror -ansi -pedantic -std=c99 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE"
32                 ;;
33         --)
34                 shift
35                 break
36                 ;;
37         -*)
38                 echo >&2 "Eh $1?"
39                 exit 1
40                 ;;
41         *)
42                 break
43                 ;;              
44         esac
45         shift
46 done
47
48 : ${O=-O2}
49 make $d \
50      PYTHON_PATH=/usr/bin/python2.4 \
51      CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
52      WITH_SEND_EMAIL=YesPlease \
53      WITH_SVNIMPORT=YesPlease \
54      "$@"