@@ -21,50 +21,60 @@ if test $# != 1; then
21
21
exit 1
22
22
fi
23
23
24
+ status=0
24
25
version=$1
25
26
version_major=$( echo $1 | awk -F. ' {print $1}' )
26
27
version_minor=$( echo $1 | awk -F. ' {print $2}' )
27
28
28
29
# Check that version number has been updated everywhere...
29
30
if test $( grep AC_INIT configure.ac | awk ' {print $2}' ) ! = " [$version ]," ; then
30
31
echo " Still need to update AC_INIT version in 'configure.ac'."
31
- exit 1
32
+ status= 1
32
33
fi
33
34
34
35
if test $( head -4 CHANGES.md | tail -1 | awk ' {print $1}' ) ! = " v$version " ; then
35
36
echo " Still need to update CHANGES.md version number."
36
- exit 1
37
+ status= 1
37
38
fi
38
39
if test $( head -4 CHANGES.md | tail -1 | awk ' {print $3}' ) = " YYYY-MM-DD" ; then
39
40
echo " Still need to update CHANGES.md release date."
40
- exit 1
41
+ status= 1
41
42
fi
42
43
43
44
if test $( grep PDFIO_VERSION= configure | awk -F \" ' {print $2}' ) ! = " $version " ; then
44
45
echo " Still need to run 'autoconf -f'."
45
- exit 1
46
+ status= 1
46
47
fi
47
48
48
49
if test $( grep ' <version>' pdfio_native.nuspec | sed -E -e ' 1,$s/^.*<version>([0-9.]+).*$/\1/' ) ! = " $version " ; then
49
50
echo " Still need to update version in 'pdfio_native.nuspec'."
50
- exit 1
51
+ status= 1
51
52
fi
52
53
53
54
if test $( grep ' <version>' pdfio_native.redist.nuspec | sed -E -e ' 1,$s/^.*<version>([0-9.]+).*$/\1/' ) ! = " $version " ; then
54
55
echo " Still need to update version in 'pdfio_native.redist.nuspec'."
55
- exit 1
56
+ status= 1
56
57
fi
57
58
58
59
if test $( grep PDFIO_VERSION pdfio.h | awk -F \" ' {print $2}' ) ! = " $version " ; then
59
60
echo " Still need to update PDFIO_VERSION in 'pdfio.h'."
60
- exit 1
61
+ status= 1
61
62
fi
62
- if test $( grep PDFIO_VERSION_MAJOR pdfio.h | awk ' {print $3 }' ) ! = " $version_major " ; then
63
+ if test $( grep PDFIO_VERSION_MAJOR pdfio.h | awk ' {print $4 }' ) ! = " $version_major " ; then
63
64
echo " Still need to update PDFIO_VERSION_MAJOR in 'pdfio.h'."
64
- exit 1
65
+ status= 1
65
66
fi
66
- if test $( grep PDFIO_VERSION_MINOR pdfio.h | awk ' {print $3 }' ) ! = " $version_minor " ; then
67
+ if test $( grep PDFIO_VERSION_MINOR pdfio.h | awk ' {print $4 }' ) ! = " $version_minor " ; then
67
68
echo " Still need to update PDFIO_VERSION_MINOR in 'pdfio.h'."
69
+ status=1
70
+ fi
71
+
72
+ if test $( grep VERSION pdfio1.def | awk ' {print $2}' ) ! = " $version_major .$version_minor " ; then
73
+ echo " Still need to update VERSION in 'pdfio1.def'."
74
+ status=1
75
+ fi
76
+
77
+ if test $status = 1; then
68
78
exit 1
69
79
fi
70
80
0 commit comments