From 4d156213b19def55ab8b8ddcb15c5b57040bbe1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 20 Jun 2013 18:22:00 -0300 Subject: Be able to ignore packages - export I="glibc binutils gcc" --- treepkg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'treepkg') 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 # @@ -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 -- cgit v1.2.3-2-g168b