Update entry point list.
[platform/upstream/glib.git] / sanity_check
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 glib.spec docs/glib-config.1
17 do
18         echo -n "$file... "
19         if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" == "x1" ]; then
20                 echo "ok"
21         else
22                 echo "failed."
23                 exit 1
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/*.html | grep -v total
39 wc -l glib-$VERSION/docs/*.info | grep -v total
40
41 rm -rf glib-$VERSION