blob: 48b259d598dd586c39899f4dfaf1a579c1bb7290 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
$NetBSD: patch-ta,v 1.1 2006/10/11 18:32:40 rillig Exp $
--- TOOLS/checktree.sh.orig 2006-06-11 20:35:46.000000000 +0200
+++ TOOLS/checktree.sh 2006-10-11 20:28:37.000000000 +0200
@@ -71,7 +71,7 @@ printhead() {
all_filenames() {
test "$_files" != "" && echo "$_files" && return
- if [ "$_cvs" == "no" ]; then
+ if [ "$_cvs" = "no" ]; then
find . -type f \
| grep -v "\.\#\|\~$\|\.depend\|\/CVS\/\|config.mak\|^\./config\.h" \
| grep -v "^\./version\.h\|\.o$\|\.a$"
@@ -208,7 +208,7 @@ done
# Set heading color
-if [ "$_color" == "yes" ]; then
+if [ "$_color" = "yes" ]; then
COLB="\e[36m"
COLE="\e[m"
else
@@ -220,7 +220,7 @@ fi
filelist=`all_filenames`
-if [ "$_showcont" == "yes" ]; then
+if [ "$_showcont" = "yes" ]; then
_diffopts="-u"
_grepopts="-n -I"
else
@@ -234,21 +234,21 @@ fi
# -----------------------------------------------------------------------------
-if [ "$_spaces" == "yes" ]; then
+if [ "$_spaces" = "yes" ]; then
printhead "checking for spaces in filenames ..."
find . | grep " "
fi
# -----------------------------------------------------------------------------
-if [ "$_extensions" == "yes" ]; then
+if [ "$_extensions" = "yes" ]; then
printhead "checking for uppercase extensions ..."
echo $filelist | grep "\.[[:upper:]]\+$" | grep -v "\.S$"
fi
# -----------------------------------------------------------------------------
-if [ "$_crlf" == "yes" ]; then
+if [ "$_crlf" = "yes" ]; then
printhead "checking for MSDOS line endings ..."
grep $_grepopts "
" $filelist
@@ -256,28 +256,28 @@ fi
# -----------------------------------------------------------------------------
-if [ "$_trailws" == "yes" ]; then
+if [ "$_trailws" = "yes" ]; then
printhead "checking for trailing whitespace ..."
grep $_grepopts "[[:space:]]\+$" $filelist
fi
# -----------------------------------------------------------------------------
-if [ "$_rcsid" == "yes" ]; then
+if [ "$_rcsid" = "yes" ]; then
printhead "checking for missing RCS \$Id\$ or \$Revision\$ tags ..."
grep -L -I "\$\(Id\|Revision\)[[:print:]]\+\$" $filelist
fi
# -----------------------------------------------------------------------------
-if [ "$_oll" == "yes" ]; then
+if [ "$_oll" = "yes" ]; then
printhead "checking for overly long lines (over 79 characters) ..."
grep $_grepopts "^[[:print:]]\{80,\}$" $filelist
fi
# -----------------------------------------------------------------------------
-if [ "$_charset" == "yes" ]; then
+if [ "$_charset" = "yes" ]; then
printhead "checking bad charsets ..."
for I in $filelist ; do
case "$I" in
|