Merge branch '976-disable-assert-checks' into 'master'
[glib.git] / sanity_check
blob44ae7f1f3d551acde12001edf531e62432b36bc8
1 #!/bin/sh
3 VERSION=$1
5 if [ ! -f glib-$VERSION.tar.gz ]; then
6 echo "ERROR: glib-$VERSION.tar.gz does not exist..."
7 exit 1
8 fi
10 echo ""
12 echo "Checking glib-$VERSION.tar.gz..."
13 tar xfz glib-$VERSION.tar.gz
16 for file in INSTALL NEWS
18 echo -n "$file... "
19 if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" = "x0" ]; then
20 echo "failed."
21 #exit 1
22 else
23 echo "ok"
25 done
27 echo -n "INSTALL..."
28 if [ "x`grep $VERSION glib-$VERSION/INSTALL | wc -l | awk -F' ' '{print $1}'`" = "x2" ]; then
29 echo "ok"
30 else
31 echo "failed."
32 exit 1
35 echo ""
36 echo "Number of lines in created documentation files:"
38 wc -l glib-$VERSION/docs/reference/*/html/*.html | grep total
40 rm -rf glib-$VERSION