stow/tools/get-version
2019-06-25 20:05:47 +01:00

14 lines
207 B
Perl
Executable file

#!/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;