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
|
|
|
|
|
|
|
|
|
1999-07-24 20:50:58 +02:00
|
|
|
for file in INSTALL NEWS README glib.spec docs/glib-config.1
|
1998-10-25 09:20:31 +01:00
|
|
|
do
|
|
|
|
echo -n "$file... "
|
|
|
|
if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" == "x1" ]; then
|
|
|
|
echo "ok"
|
|
|
|
else
|
|
|
|
echo "failed."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo -n "INSTALL..."
|
|
|
|
if [ "x`grep $VERSION glib-$VERSION/INSTALL | wc -l | awk -F' ' '{print $1}'`" == "x2" ]; then
|
|
|
|
echo "ok"
|
|
|
|
else
|
|
|
|
echo "failed."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Number of lines in created documentation files:"
|
|
|
|
|
|
|
|
wc -l glib-$VERSION/docs/*.html | grep -v total
|
|
|
|
wc -l glib-$VERSION/docs/*.info | grep -v total
|
|
|
|
|
|
|
|
rm -rf glib-$VERSION
|