diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2003-08-06 21:20:15 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2003-08-06 21:20:15 +0000 |
commit | 271e79f44b524fab5603a100ee82037a5381d148 (patch) | |
tree | adfe3bf5e9b4afaec8ace653dcfef61011a5cce3 /bootstrap | |
parent | f6c08136e010ed381218a3673d7b2c2b4b8855a7 (diff) | |
download | automake-271e79f44b524fab5603a100ee82037a5381d148.tar.gz |
* lib/Automake/Config.in: New file.
* lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
CLEANFILES): New variables.
(Config.pm): New rule.
* Makefile.am (maintainer-check): Adjust expected differences
between automake.in and automake.
* aclocal.in, automake.in: Use Automake::Config.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 36 |
1 files changed, 19 insertions, 17 deletions
@@ -90,28 +90,29 @@ rm -rf automake-$APIVERSION mkdir automake-$APIVERSION cp -rf lib/* automake-$APIVERSION +dosubst () +{ + sed -e "s%@PERL@%$PERL%g" \ + -e "s%@VERSION@%$VERSION%g" \ + -e "s%@APIVERSION@%$APIVERSION%g" \ + -e "s%@PACKAGE@%$PACKAGE%g" \ + -e "s%@datadir@%$datadir%g" \ + -e "s%@SHELL@%$BOOTSTRAP_SHELL%g" $1 > $2 +} + + +# Create temporary replacement for lib/Automake/Config.pm +dosubst automake-$APIVERSION/Automake/Config.in \ + automake-$APIVERSION/Automake/Config.pm + # Create temporary replacement for aclocal -sed -e "s%@PERL@%$PERL%g" \ - -e "s%@VERSION@%$VERSION%g" \ - -e "s%@APIVERSION@%$APIVERSION%g" \ - -e "s%@PACKAGE@%$PACKAGE%g" \ - -e "s%@datadir@%$datadir%g" \ - -e "s%@SHELL@%$BOOTSTRAP_SHELL%g" \ - aclocal.in >aclocal.tmp +dosubst aclocal.in aclocal.tmp # Overwrite amversion.m4 -sed -e "s%@VERSION@%$VERSION%g" \ - -e "s%@APIVERSION@%$APIVERSION%g" \ - m4/amversion.in >m4/amversion.m4 +dosubst m4/amversion.in m4/amversion.m4 # Create temporary replacement for automake -sed -e "s%@PERL@%$PERL%g" \ - -e "s%@VERSION@%$VERSION%g" \ - -e "s%@APIVERSION@%$APIVERSION%g" \ - -e "s%@PACKAGE@%$PACKAGE%g" \ - -e "s%@datadir@%$datadir%g" \ - -e "s%@SHELL@%$BOOTSTRAP_SHELL%g" \ - automake.in >automake.tmp +dosubst automake.in automake.tmp # Run the autotools. $PERL ./aclocal.tmp -I m4 @@ -121,3 +122,4 @@ $PERL ./automake.tmp # Remove temporary files and directories rm -rf aclocal-$APIVERSION automake-$APIVERSION rm -f aclocal.tmp automake.tmp +rm -f lib/Automake/Config.pm |