gtk2/sanity_check
CST 1998 Shawn T. Amundson 12f7825907 INSTALL: NEWS: README: gtk+.spec: docs/gtk-config.1: Version incremented
Sat Nov 21 18:41:13 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * configure.in:
          INSTALL:
          NEWS:
          README:
          gtk+.spec:
          docs/gtk-config.1: Version incremented to 1.1.5

        * Released GTK+ 1.1.5
1998-11-23 01:46:11 +00:00

52 lines
992 B
Bash
Executable File

#!/bin/sh
VERSION=$1
if [ ! -f gtk+-$VERSION.tar.gz ]; then
echo "ERROR: gtk+-$VERSION.tar.gz does not exist..."
exit 1
fi
echo ""
echo "Checking gtk+-$VERSION.tar.gz..."
tar xfz gtk+-$VERSION.tar.gz
for file in README gtk+.spec docs/gtk-config.1
do
echo -n "$file... "
if [ "x`grep $VERSION gtk+-$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 gtk+-$VERSION/INSTALL | wc -l | awk -F' ' '{print $1}'`" == "x3" ]; then
echo "ok"
else
echo "failed."
exit 1
fi
echo -n "NEWS..."
if [ "x`grep "GTK+ $VERSION" gtk+-$VERSION/NEWS | wc -l | awk -F' ' '{print $1}'`" == "x1" ]; then
echo "ok"
else
echo "failed."
exit 1
fi
echo ""
echo "Number of lines in created documentation files:"
wc -l gtk+-$VERSION/docs/html/*.html | grep -v total
wc -l gtk+-$VERSION/docs/text/*.txt | grep -v total
wc -l gtk+-$VERSION/docs/*.info | grep -v total
rm -rf gtk+-$VERSION