Add some polish to the release process

This commit is contained in:
Adam Spiers 2019-06-25 20:04:11 +01:00
parent 42ed9ed942
commit e647c53af1
2 changed files with 36 additions and 18 deletions

14
tools/get-version Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/perl -w
use strict;
open(CONF, "configure.ac") or die "Couldn't open configure.ac: $!\n";
while (<CONF>) {
if (/^AC_INIT\(\[stow\], \[(.+?)\]/) {
print "$1\n";
exit 0;
}
}
exit 1;