arch 250 Bytes
Newer Older
Efe Çetin's avatar
Efe Çetin committed
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash
_get_build_deps(){
	needed=""
	for i in ${builddepends[@]}
	do
                [ -f /info/$i ] || needed="$needed $i"
        done	
	if [ "$needed" != "" ] ; then
	    err "Missing: $needed"
	    su -c "pacman -S $needed" || exit 1
	fi
}