diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 18:22:00 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 18:22:00 -0300 |
commit | 4d156213b19def55ab8b8ddcb15c5b57040bbe1f (patch) | |
tree | 3763010b97b6aec441276474d194258e4fbb53e9 /treepkg | |
parent | 6d6b719221d3b4190325b43a3fbfd14405765420 (diff) |
Be able to ignore packages - export I="glibc binutils gcc"
Diffstat (limited to 'treepkg')
-rwxr-xr-x | treepkg | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |