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"
19 *) echo "Unrecognized option: $i"
26 '') outputs="version.m4 include/version.def" ;;
33 dversion=`scripts/VersionName`
39 echo "m4_define([VERSION_NUMBER],[${dversion}])" > /tmp/version.m4+
40 cmp -s /tmp/version.m4+ version.m4
44 rm -f /tmp/version.m4+
47 mv /tmp/version.m4+ version.m4
55 echo "version = '${dversion}';" > /tmp/version.def+
56 cmp -s /tmp/version.def+ include/version.def
60 rm -f /tmp/version.def+
63 mv /tmp/version.def+ include/version.def