3 # possible usage: $0 [-f] [version.m4] [version.def]
5 # -f would be 'force the update'
14 outputs
="version.m4 $outputs"
17 outputs
="include/version.def $outputs"
20 outputs
="include/version.texi $outputs"
22 *) echo "Unrecognized option: $i"
29 '') outputs
="version.m4 include/version.def include/version.texi" ;;
36 dversion
=`scripts/VersionName`
42 echo "m4_define([VERSION_NUMBER],[${dversion}])" > /tmp
/version.
m4+
43 cmp -s /tmp
/version.
m4+ version.
m4
47 rm -f /tmp
/version.
m4+
50 mv /tmp
/version.
m4+ version.
m4
58 echo "version = '${dversion}';" > /tmp
/version.def
+
59 cmp -s /tmp
/version.def
+ include
/version.def
63 rm -f /tmp
/version.def
+
66 mv /tmp
/version.def
+ include
/version.def
74 echo "@set UPDATED `date +'%d %B %Y'`" > /tmp
/version.texi
+
75 echo "@set EDITION $dversion" >> /tmp
/version.texi
+
76 echo "@set VERSION $dversion" >> /tmp
/version.texi
+
77 cmp -s /tmp
/version.texi
+ include
/version.texi
81 rm -f /tmp
/version.texi
+
84 mv /tmp
/version.texi
+ include
/version.texi