summaryrefslogtreecommitdiff
path: root/dist/s_all
blob: b63ed31445338555bcbf86501ae7a3a952048c06 (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
#! /bin/sh

# Run standard scripts.
t=__wt.$$
trap 'rm -f $t *.pyc __tmp __wt.*' 0 1 2 3 13 15

# We require python which may not be installed.
type python > /dev/null 2>&1 || {
	echo 's_all: python not found'
	exit 1
}

run()
{
	printf "WiredTiger: $2..."
	$1 > $t

	if `grep 'skipped' $t > /dev/null 2>&1`; then
		printf " " && cat $t
	elif `test -s $t`; then
		echo
		sed -e 's/^/	/' $t
	else
		echo ' OK'
	fi
	rm -f $t
	return 0
}

echo 'dist/s_all run started...'

force=
reconf=0
while :
	do case "$1" in
	-A)	# Reconfigure the library build.
		reconf=1
		shift;;
	-f)	# Force versions to be updated
		force="-f"
		shift;;
	*)
		break;;
	esac
done

run "sh ./s_version $force" "Updating files that include the package version"

test "$reconf" -eq 0 || {
	(cd ../build_posix &&
	run "sh ./reconf" "Rebuilding GNU tools library support")
}

run "python api_config.py" "building WiredTiger API"
run "python api_err.py" "building WiredTiger error returns"

run "python flags.py" "building flags"
run "python log.py" "building logging layer"
run "python stat.py" "building statistics support"
run "python java_doc.py" "building Java documentation index"

run "sh ./s_typedef -b" "building standard typedefs"
run "sh ./s_prototypes" "building function prototypes"
run "sh ./s_readme $force" "building README file"
run "sh ./s_tags" "building tags files"

run "sh ./s_copyright" "checking copyright notices"
run "sh ./s_define" "checking for unused #defines"
run "sh ./s_funcs" "checking for unused functions"
run "sh ./s_getopt" "checking for incorrect getopt usage"
run "sh ./s_lang" "checking for SWIG generated name conflicts"
run "sh ./s_longlines" "checking for long lines"
run "sh ./s_stat" "checking for unused statistics fields"
run "sh ./s_string" "checking string spelling"
run "python style.py" "checking style (pass 1)"
run "sh ./s_style" "checking style (pass 2)"
run "sh ./s_symbols" "checking external symbol names"
run "sh ./s_typedef -c" "checking for unused typedefs"
run "sh ./s_whitespace" "checking whitespace"
run "sh ./s_win" "checking windows config"

run "sh ./s_docs" "generating documentation"

echo 'dist/s_all run finished'