configure.ac: generate version number from git commit and tags
[wimlib] / tools / update-version
index 092c572ed2c5d98854a502fc7bcbf433837c93ac..7898219631008c53ea72180597ec9d147c44de4a 100755 (executable)
@@ -23,7 +23,7 @@ newver="${newmajor}.${newminor}.${newpatch}"
 pat='This is wimlib version [^[:space:]]\+ ([^[:space:]]\+ [^[:space:]]\+)'
 sed -i "s/$pat/This is wimlib version $newver ($newmonth $newyear)/" README
 
-sed -i "s/$oldver/$newver/" configure.ac
+sed -i "s/$oldver/$newver/" tools/get-version-number
 
 sed -i -e 's/\(#define WIMLIB_MAJOR_VERSION[[:space:]]\+\)[[:digit:]]\+/\1'$newmajor'/' \
        -e 's/\(#define WIMLIB_MINOR_VERSION[[:space:]]\+\)[[:digit:]]\+/\1'$newminor'/' \