157f39385a
This is more idiomatic and consistent with everywhere else.
15 lines
218 B
Perl
Executable file
15 lines
218 B
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
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;
|