aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-12-21 10:59:30 +0100
committerFabian Groffen <grobian@gentoo.org>2021-12-21 10:59:30 +0100
commit331d3dbb1fa1fdcade0d1debb1fc722ef3b9d1f2 (patch)
tree634925c9a6f494c7ae2857aa877f9973921dcc68 /autogen.sh
parentqlist: fix matching of USE-flags (diff)
downloadportage-utils-331d3dbb1fa1fdcade0d1debb1fc722ef3b9d1f2.tar.gz
portage-utils-331d3dbb1fa1fdcade0d1debb1fc722ef3b9d1f2.tar.bz2
portage-utils-331d3dbb1fa1fdcade0d1debb1fc722ef3b9d1f2.zip
autogen: keep our own m4 files around
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 1cfb68b..ea564e0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,7 +14,16 @@ if ! qlist -qI sys-devel/autoconf-archive > /dev/null ; then
exit 1
fi
-v rm -rf autotools
+# keep this list updated with non-generated M4 files
+keepm4=( ac_check_sendfile.m4 )
+for keepf in "${keepm4[@]}" ; do
+ v mv "${m4dir}/${keepf}" "autotools/"
+done
+v rm -rf autotools/{gnulib,m4}
+v mkdir "${m4dir}"
+for keepf in "${keepm4[@]}" ; do
+ v mv "autotools/${keepf}" "${m4dir}/"
+done
# reload the gnulib code
PATH=/usr/local/src/gnu/gnulib:${PATH}