From 293de9c6ecb326687e895a9cf0a9504e2edf8074 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 11 Oct 2008 06:14:02 +0200 Subject: [PATCH] Added a new template helper to run GNU automake stuff for a pkg. --HG-- extra : convert_revision : 55608667a6245e3aa5c71b92ff7bfd9f6ca88c2a --- helper-templates/automake.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 helper-templates/automake.sh diff --git a/helper-templates/automake.sh b/helper-templates/automake.sh new file mode 100755 index 00000000000..6d237945bc1 --- /dev/null +++ b/helper-templates/automake.sh @@ -0,0 +1,18 @@ +# +# This helper runs the GNU autoconf tools and friends for a template. +# Optionally $automake_dir may be specified for a specific directory. +# + +run_automake() +{ + $PKGFS_MASTERDIR/bin/aclocal + $PKGFS_MASTERDIR/bin/libtoolize --automake + $PKGFS_MASTERDIR/bin/automake -a --foreign -i + $PKGFS_MASTERDIR/bin/autoconf +} + +if [ -z "$automake_dir" ]; then + cd $wrksrc && run_automake +else + cd $wrksrc/$automake_dir && run_automake +fi