Created
September 4, 2011 13:04
-
-
Save tongson/1192825 to your computer and use it in GitHub Desktop.
srcpac-0.10.4 diff for automated builds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/bin/srcpac | |
+++ /usr/bin/srcpac | |
@@ -152,7 +152,7 @@ | |
pkgdir="${ABSROOT}/${1}" | |
builddir=/var/srcpac/${pkg} | |
- MAKEPKGOPTS="-c -s" | |
+ MAKEPKGOPTS="-c -s -d" | |
[ $NODEPS -eq 1 ] && MAKEPKGOPTS="${MAKEPKGOPTS} -d" | |
[ $MAKEDEPS -eq 1 ] && MAKEPKGOPTS="${MAKEPKGOPTS} -r" | |
[ $NOCONFIRM -eq 1 ] && MAKEPKGOPTS="${MAKEPKGOPTS} --noconfirm" | |
@@ -197,21 +197,8 @@ build_packages() | |
let count=count+1 | |
done | |
- if [ ${NOCONFIRM} -eq 0 ]; then | |
- local pkglist | |
- echo "Enter a selection (default=all):" | |
- read | |
- if [ -n "${REPLY}" ]; then | |
- for i in ${REPLY}; do | |
- pkglist="${pkglist} ${builddir}/${builtpkgs[$i]}-${pkgver}-*.pkg.tar.?z" | |
- done | |
- pacman $PACARGS ${pkglist} | |
- fi | |
- else | |
- pacman $PACARGS ${builddir}/*.pkg.tar.?z | |
- fi | |
else | |
- pacman $PACARGS ${builddir}/${pkg}*.pkg.tar.?z | |
+ echo "Done!" | |
fi | |
touch /var/lib/srcpac/${pkg} | |
@@ -532,13 +519,6 @@ main() | |
echo -n "${pkg#*/} " | |
done | |
echo | |
- if [ ${NOCONFIRM} -eq 0 ]; then | |
- echo -n "Proceed? [Y/n]" | |
- read | |
- if [ "${REPLY}" != "y" -a "${REPLY}" != "Y" -a "${REPLY}" != "" ]; then | |
- exit 0 | |
- fi | |
- fi | |
for pkg in ${candidates}; do | |
build_packages "install" ${pkg} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment