2019-06-27 15:39:16 -04:00
|
|
|
#!/usr/bin/perl
|
2019-06-25 15:04:11 -04:00
|
|
|
|
|
|
|
use strict;
|
2019-06-27 15:39:16 -04:00
|
|
|
use warnings;
|
2019-06-25 15:04:11 -04:00
|
|
|
|
|
|
|
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;
|