3 GNATROOT
=/opt
/gnat
/2007
5 PATH
=$GNATROOT/bin
:$HOME/bin
:$PATH
12 GIT_INDEX_DIR
=`dirname $GIT_INDEX_FILE`
13 REPOSIT
=`dirname $GIT_INDEX_DIR`
15 [ "$REPOSIT" == "" ] && echo No repository found
&& exit 1;
17 # Set Style_Checker options
19 OWEB
="-H -cP -cY -l256"
22 *) SC_OPTS
="-ign out -ign tmplt -ign sed -ign txt \
23 -lang Ada -cp -cy -sp -gnat05 -lang TXML $OWEB \
24 -lang XML $OWEB -lang HTML $OWEB -lang XSD $OWEB -lang CSS $OWEB"
35 if [ "$mode" = "D" ]; then
38 git show
$id > $REP/$file
39 ( cd $REP; style_checker
$SC_OPTS -n "$6" "$file"; )
46 # Get files to be commited
47 # <N1> <N2> <Id-OLD> <Id-NEW> <status> <Filename>
48 git-diff-index
-M --cached HEAD
> $REP/files