summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-06-20 18:22:00 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-06-20 18:22:00 -0300
commit4d156213b19def55ab8b8ddcb15c5b57040bbe1f (patch)
tree3763010b97b6aec441276474d194258e4fbb53e9
parent6d6b719221d3b4190325b43a3fbfd14405765420 (diff)
Be able to ignore packages - export I="glibc binutils gcc"
-rwxr-xr-xtreepkg9
1 files changed, 8 insertions, 1 deletions
diff --git a/treepkg b/treepkg
index ee4964d..1350428 100755
--- a/treepkg
+++ b/treepkg
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#set -x
# (c) 2012 Nicolás Reynolds <fauno@parabola.nu>
#
@@ -127,6 +127,7 @@ BUILD=${B:-true}
CLEANUP=${C:-true}
# Skip BUILDORDER creation and build anything on BUILDDIR
BUILDNOW=${N:-false}
+IGNORE=${I:-}
if [ ! -z "${1}" -a ${DEPTH} -eq 0 ]; then
BUILDNOW=true
@@ -138,6 +139,12 @@ if ! ${BUILDNOW}; then
# If this package is already built quit silently
for _pkg in ${pkgname[@]}; do
+
+ echo "${IGNORE[@]}" | grep -q ${_pkg} && {
+ add_order "ignore"
+ exit 0
+ }
+
if is_built "${_pkg}" "${fullver}"; then
add_order "ignore"
exit 0