comparison make-check @ 0:04124a4423d4 noffle

[svn] Initial revision
author enz
date Tue, 04 Jan 2000 11:35:42 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:04124a4423d4
1 #!/bin/bash
2
3 if grep '^CFLAGS.*DEBUG' Makefile ; then
4 echo "Debugging options are on in Makefile"
5 exit -1
6 fi
7
8 if grep // *.[ch] ; then
9 echo "Failed: Source contains C++ style comments"
10 exit -1
11 fi
12
13 if grep strncpy *.[ch] ; then
14 echo "strncpy may result in unterminated strings."
15 echo "Use Util_copyString"
16 exit -1
17 fi
18
19 if grep XXX *.[ch] ; then
20 echo "Source contains XXX marker (personnally used)"
21 exit -1
22 fi
23
24 if grep -i "since version" CHANGELOG.html ; then
25 echo "Warning: CHANGELOG.html should mention new version"
26 echo "Continue anyway? (y/n)"
27 read a
28 if test "$a" != "j" -a "$a" != "J"; then exit -1; fi
29 fi
30
31 exit 0
32