aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-05 19:18:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-05 19:18:34 +0000
commitda74e547c26d417efffcff3cc0e78ff302b622ba (patch)
tree01f389e28fbe8112f95666f9543fe800d6b3f521
parentd2c9f429e719d82e2ab1ea7f648d25b3ea14d5ef (diff)
downloadpaludis-da74e547c26d417efffcff3cc0e78ff302b622ba.tar.gz
paludis-da74e547c26d417efffcff3cc0e78ff302b622ba.tar.xz
Move emake to an external app, like it is in Portage, so things like xargs emake work
-rw-r--r--ebuild/build_functions.bash6
-rw-r--r--ebuild/utils/Makefile.am1
-rwxr-xr-xebuild/utils/emake22
3 files changed, 23 insertions, 6 deletions
diff --git a/ebuild/build_functions.bash b/ebuild/build_functions.bash
index 10fda6c..a267aac 100644
--- a/ebuild/build_functions.bash
+++ b/ebuild/build_functions.bash
@@ -74,12 +74,6 @@ econf()
fi
}
-emake()
-{
- echo ${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@" 1>&2
- ${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
-}
-
einstall()
{
if [[ -f Makefile ]] || [[ -f makefile ]] || [[ -f GNUmakefile ]] ; then
diff --git a/ebuild/utils/Makefile.am b/ebuild/utils/Makefile.am
index 008f616..ea6a102 100644
--- a/ebuild/utils/Makefile.am
+++ b/ebuild/utils/Makefile.am
@@ -29,6 +29,7 @@ libexecprog_SCRIPTS = \
dosbin \
dosed \
dosym \
+ emake \
fowners \
fperms \
getmtime \
diff --git a/ebuild/utils/emake b/ebuild/utils/emake
new file mode 100755
index 0000000..642d060
--- /dev/null
+++ b/ebuild/utils/emake
@@ -0,0 +1,22 @@
+#!/bin/bash
+# vim: set sw=4 sts=4 et :
+
+# Copyright (c) 2006 Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
+#
+# This file is part of the Paludis package manager. Paludis is free software;
+# you can redistribute it and/or modify it under the terms of the GNU General
+# Public License as published by the Free Software Foundation; either version
+# 2 of the License, or (at your option) any later version.
+#
+# Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place, Suite 330, Boston, MA 02111-1307 USA
+
+echo ${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@" 1>&2
+${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
+