1998-10-25 09:20:31 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
|
|
|
|
if [ ! -f glib-$VERSION.tar.gz ]; then
|
|
|
|
echo "ERROR: glib-$VERSION.tar.gz does not exist..."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "Checking glib-$VERSION.tar.gz..."
|
|
|
|
tar xfz glib-$VERSION.tar.gz
|
|
|
|
|
|
|
|
|
2005-11-18 14:58:48 +01:00
|
|
|
for file in INSTALL NEWS README
|
1998-10-25 09:20:31 +01:00
|
|
|
do
|
|
|
|
echo -n "$file... "
|
2006-11-14 19:23:48 +01:00
|
|
|
if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" = "x0" ]; then
|
1998-10-25 09:20:31 +01:00
|
|
|
echo "failed."
|
2006-07-02 21:52:14 +02:00
|
|
|
#exit 1
|
2005-11-18 14:58:48 +01:00
|
|
|
else
|
|
|
|
echo "ok"
|
1998-10-25 09:20:31 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo -n "INSTALL..."
|
2006-11-14 19:23:48 +01:00
|
|
|
if [ "x`grep $VERSION glib-$VERSION/INSTALL | wc -l | awk -F' ' '{print $1}'`" = "x2" ]; then
|
1998-10-25 09:20:31 +01:00
|
|
|
echo "ok"
|
|
|
|
else
|
|
|
|
echo "failed."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Number of lines in created documentation files:"
|
|
|
|
|
2005-11-18 14:58:48 +01:00
|
|
|
wc -l glib-$VERSION/docs/reference/*/html/*.html | grep total
|
1998-10-25 09:20:31 +01:00
|
|
|
|
|
|
|
rm -rf glib-$VERSION
|