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