PKGBUILDs/scripts/recursive-builder

30 lines
467 B
Text
Raw Normal View History

2010-02-18 12:51:45 +00:00
#!/bin/sh
# Set me to where you want packages
2010-04-24 03:57:10 +00:00
cd /media/usb/builder/pkg/core
2010-02-18 12:51:45 +00:00
echo $1
pacman -Ssq $1
if [ $? = 0 ]
then
{
2010-04-24 03:57:10 +00:00
echo $1 "already exists."
2010-02-18 12:51:45 +00:00
}
else
{
if [ ! -d ./$1 ]
then
{
2010-04-24 03:57:10 +00:00
cp -r /media/usb/builder/abs/core/$1 .
2010-02-18 12:51:45 +00:00
# You might want to change me too
}
fi
cd $1
f=`find . -name *.pkg.tar*`
echo $f
if [ -z $f ]
then
echo $1
makepkg --ignorearch --asroot --clean --syncdeps --noconfirm --rmdeps 2> $1-`date +%s`.log
fi
}
fi