3 if [ ! -f logprint.h
]; then
4 echo "You are not in the mcabber directory" >&2
8 if which hg
> /dev
/null
2>&1; then
9 cs
=$
(hg id
2> /dev
/null | cut
-d' ' -f1)
10 if test $?
-eq 0; then
11 if [ x
"$cs" != x
]; then
12 grep -q "$cs" hgcset.h
> /dev
/null
2>&1 || \
13 echo "#define HGCSET \"$cs\"" > hgcset.h