diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-04 20:42:38 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-04 20:42:38 -0300 |
commit | b53d6c027ad0a90c676419d2246fa76a7682221a (patch) | |
tree | 7dde60984d1b93d8171e16a8853b0251e2bfa19f | |
parent | b5c7d749c484eef82315872895d53b5cf7f97f66 (diff) |
Pass the build dir as first argument to retake a build
-rwxr-xr-x | treepkg | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -117,6 +117,10 @@ CLEANUP=${C:-true} # Skip BUILDORDER creation and build anything on BUILDDIR BUILDNOW=${N:-false} +if [ ! -z "${1}" -a ${DEPTH} -eq 0 ]; then + BUILDNOW=true +fi + if ! ${BUILDNOW}; then # ensure it exists touch "${BUILDORDER}" @@ -190,7 +194,7 @@ if [ ${DEPTH} -eq 0 ]; then # Run build command pushd "${BUILDDIR}/${_pkg}" >/dev/null - sudo pacman -Syu + sudo pacman -Syu --noconfirm ${FULLBUILDCMD} # Run local release hook with $1 = $repo |