Browse Source

* introduced hack_stages() on lib/sde-config/functions.in to alter the stages

of one or more packages on config/$config/packages.


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@20999 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
77b725b394
1 changed files with 16 additions and 1 deletions
  1. +16
    -1
      lib/sde-config/functions.in

+ 16
- 1
lib/sde-config/functions.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-config/functions.in
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -82,6 +82,21 @@ create_dot_in_lists() {
create_configin_list
}
hack_stages() {
local stage="$1----------"; shift
local pkgs="$*"
if [ $# -gt 1 ]; then
pkgs="${pkgs// /\|}"
elif [ $# -eq 1 ]; then
true
fi
if [ "$pkgs" ]; then
pkgfilter sed -e "s,^\(.\) [^ ]* \([^ ]*\) \([^ ]*\) \($pkgs\) ,\1 ${stage:0:10} \2 \3 \4 ,"
fi
}
# Functions for working with config/$config/packages
#
# pkgenable package-list

Loading…
Cancel
Save