|
9 | 9 | #################################################################
|
10 | 10 |
|
11 | 11 | #
|
12 |
| -# This script updates the version stamp in configure.in, and also in assorted |
| 12 | +# This script updates the version stamp in configure.ac, and also in assorted |
13 | 13 | # other files wherein it's not convenient to obtain the version number from
|
14 | 14 | # configure's output. Note that you still have to run autoconf afterward
|
15 |
| -# to regenerate configure from the updated configure.in. |
| 15 | +# to regenerate configure from the updated configure.ac. |
16 | 16 | #
|
17 | 17 | # Usage: cd to top of source tree and issue
|
18 | 18 | # src/tools/version_stamp.pl MINORVERSION
|
|
74 | 74 | # (this also ensures we're in the right directory)
|
75 | 75 |
|
76 | 76 | my $aconfver = "";
|
77 |
| -open(my $fh, '<', "configure.in") || die "could not read configure.in: $!\n"; |
| 77 | +open(my $fh, '<', "configure.ac") || die "could not read configure.ac: $!\n"; |
78 | 78 | while (<$fh>)
|
79 | 79 | {
|
80 | 80 | if (m/^m4_if\(m4_defn\(\[m4_PACKAGE_VERSION\]\), \[(.*)\], \[\], \[m4_fatal/
|
|
86 | 86 | }
|
87 | 87 | close($fh);
|
88 | 88 | $aconfver ne ""
|
89 |
| - || die "could not find autoconf version number in configure.in\n"; |
| 89 | + || die "could not find autoconf version number in configure.ac\n"; |
90 | 90 |
|
91 |
| -# Update configure.in and other files that contain version numbers |
| 91 | +# Update configure.ac and other files that contain version numbers |
92 | 92 |
|
93 | 93 | my $fixedfiles = "";
|
94 | 94 |
|
95 |
| -sed_file("configure.in", |
| 95 | +sed_file("configure.ac", |
96 | 96 | "-e 's/AC_INIT(\\[PostgreSQL\\], \\[[0-9a-z.]*\\]/AC_INIT([PostgreSQL], [$fullversion]/'"
|
97 | 97 | );
|
98 | 98 |
|
|
0 commit comments