stow/tools/get-version

15 lines
207 B
Plaintext
Raw Normal View History

2019-06-25 15:04:11 -04:00
#!/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;