File: sanity_check

package info (click to toggle)
glib2.0 2.58.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-proposed-updates
  • size: 48,744 kB
  • sloc: ansic: 452,196; xml: 16,781; python: 6,149; makefile: 3,776; sh: 1,499; perl: 1,140; cpp: 9
file content (40 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/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


for file in INSTALL NEWS
do
	echo -n "$file... "
	if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" = "x0" ]; then
		echo "failed."
		#exit 1
	else
		echo "ok"
	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/reference/*/html/*.html | grep total 

rm -rf glib-$VERSION