blob: 9f02f84251cdb5334c2ba4cc55466548d75b559a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|