From 6c9b2af1bf30486f69ef49bf43c7e9af4eb35bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Thu, 7 Apr 2011 16:12:37 -0500 Subject: Librerepkg for testing --- librerepkg | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'librerepkg') diff --git a/librerepkg b/librerepkg index f943c2a..53751e4 100644 --- a/librerepkg +++ b/librerepkg @@ -19,4 +19,23 @@ # along with Parabola. If not, see . source /etc/libretools.conf +custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf +if [ -x $custom_config ]; then + source $custom_config; + unset $custom_config +fi +[[ ! -r rePKGBUILD ]] && { + error "This build does not contains a rePKGBUILD." + exit 1 +} + +source /etc/makepkg.conf +source /etc/abs.conf + +stdnull "tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)" + +cp rePKGBUILD ${tempdir}/PKGBUILD +pushd ${tempdir} +msg Building using libremakepkg +sudo libremakepkg -- cgit v1.2.2