1 #!/bin/sh 2 3 VERSION=$1 4 5 if [ ! -f glib-$VERSION.tar.gz ]; then 6 echo "ERROR: glib-$VERSION.tar.gz does not exist..." 7 exit 1 8 fi 9 10 echo "" 11 12 echo "Checking glib-$VERSION.tar.gz..." 13 tar xfz glib-$VERSION.tar.gz 14 15 16 for file in INSTALL NEWS README 17 do 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" 24 fi 25 done 26 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 33 fi 34 35 echo "" 36 echo "Number of lines in created documentation files:" 37 38 wc -l glib-$VERSION/docs/reference/*/html/*.html | grep total 39 40 rm -rf glib-$VERSION 41