aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Quentin Glidic <sardemff7+git@sardemff7.net> 2013-01-04 13:27:08 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-01-04 13:25:33 +0000
commitc8961658a2d8342927d29c7edcf99bc85aa1e7d0 (patch)
treefe1afaf783300fdf57785e914af640cac2d30703
parent818936bc01142d52b1757f7a6b32f1bb35f3ea92 (diff)
downloadpaludis-c8961658a2d8342927d29c7edcf99bc85aa1e7d0.tar.gz
paludis-c8961658a2d8342927d29c7edcf99bc85aa1e7d0.tar.xz
autogen.bash: Split non-autotools logic
This allows to run the usual autotools logic on the package manager side
-rwxr-xr-xautogen.bash6
-rwxr-xr-xautotools_prepare.bash17
2 files changed, 18 insertions, 5 deletions
diff --git a/autogen.bash b/autogen.bash
index ab050ed..d4dc354 100755
--- a/autogen.bash
+++ b/autogen.bash
@@ -30,11 +30,7 @@ get() {
kill $KILL_PID
}
-misc/do_m4.bash paludis/Makefile.am || exit $?
-misc/do_m4.bash paludis/paludis.hh || exit $?
-misc/do_m4.bash paludis/util/util.hh || exit $?
-misc/do_m4.bash paludis/util/Makefile.am || exit $?
-misc/do_m4.bash hooks/Makefile.am || exit $?
+./autotools_prepare.bash || exit $?
run mkdir -p config
run $(get libtoolize 1.5 ) --copy --force --automake
rm -f config.cache
diff --git a/autotools_prepare.bash b/autotools_prepare.bash
new file mode 100755
index 0000000..642c447
--- /dev/null
+++ b/autotools_prepare.bash
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# vim: set sw=4 sts=4 et tw=80 :
+
+if test "xyes" = x"${BASH_VERSION}" ; then
+ echo "This is not bash!"
+ exit 127
+fi
+
+trap 'echo "exiting." ; exit 250' 15
+KILL_PID=$$
+
+misc/do_m4.bash paludis/Makefile.am || exit $?
+misc/do_m4.bash paludis/paludis.hh || exit $?
+misc/do_m4.bash paludis/util/util.hh || exit $?
+misc/do_m4.bash paludis/util/Makefile.am || exit $?
+misc/do_m4.bash hooks/Makefile.am || exit $?
+