source: trunk/third/glib2/sanity_check @ 18159

Revision 18159, 785 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18158, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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 glib.spec docs/glib-config.1
17do
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
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/*.html | grep -v total
39wc -l glib-$VERSION/docs/*.info | grep -v total
40
41rm -rf glib-$VERSION
Note: See TracBrowser for help on using the repository browser.