commit: 331d3dbb1fa1fdcade0d1debb1fc722ef3b9d1f2
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 21 09:59:30 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec 21 09:59:30 2021 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=331d3dbb
autogen: keep our own m4 files around
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
autogen.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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}