From eb4d08dfe67beb0e8972c98a02dd2881f12b1d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Tue, 19 Oct 2010 10:13:19 -0300 Subject: Libremakepkg updates the chroot dir and builds in a clean environment --- libremakepkg | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 libremakepkg diff --git a/libremakepkg b/libremakepkg new file mode 100755 index 0000000..9f02f84 --- /dev/null +++ b/libremakepkg @@ -0,0 +1,20 @@ +#!/bin/bash + +if [ $UID -ne 0 ]; then + echo "This script must be run as root" + exit 1 +fi +if [ ! -e /etc/libretools.conf ]; then + echo "Config file doesn't exists" + exit 1 +fi + +source /etc/libretools.conf + +echo "Updating the main chroot" +mkarchroot -u -c ${CACHEDIR} ${CHROOTDIR}/${CHROOT} + +echo "Creating the package" +makechrootpkg -c -r ${CHROOTDIR} -l ${CHCOPY} -- $@ + +exit 0 -- cgit v1.2.2