From 7280d7463e582a7938ca5b0f2464b505fb5f189d Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 10 Jul 2006 18:32:10 +0000 Subject: [PATCH] * introduced only_toolchain() Config helper for mnemosyne, which preserves stage 0 and remove from 1 to 9 --- config.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config.in b/config.in index 7f6dcd8..98a65e5 100644 --- a/config.in +++ b/config.in @@ -24,6 +24,21 @@ case "$sdever" in *) CFGTEMP_TREE=unknown ;; esac +only_toolchain() { + local pkgs="$*" + set -x + if [ $# -gt 1 ]; then + pkgs="${pkgs// /\|}" + elif [ $# -eq 1 ]; then + true + fi + set +x + + if [ "$pkgs" ]; then + pkgfilter sed -e "s,^\(.\) \(.\)[^ ]* \([^ ]*\) \([^ ]*\) \($pkgs\) ,\1 \2--------- \3 \4 \5 ," + fi +} + if [ ! -s $cfgtmpdir/mnemosyne.config.in ]; then if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_MNEMOSYNE/pkgsel" TRG_MNEMOSYNE \ -- 2.11.4.GIT