Browse Source

* adapted generic target to use lib/sde-config/pkgsel2awk.sh

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21856 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
b052c1ddf4
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      target/generic/config.in

+ 9
- 8
target/generic/config.in

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/generic/config.in
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -38,13 +38,14 @@ choice SDECFG_PKGSEL_TPL none none 'No package preselection template' \
if [ "$SDECFG_PKGSEL_TPL" != none ]; then
if [ ! -f $cfgtmpdir/pkgsel.$SDECFG_PKGSEL_TPL.awk ]; then
( echo "# created from 'package preselection templates'"
pkgsel_init
cat $( ls -1 target/$target/pkgsel/*.choice |
sed -n "s,^.*/\([0-9][0-9]-\)\?$SDECFG_PKGSEL_TPL.choice,\0,p" ) |
pkgsel_parse
pkgsel_finish
) > $cfgtmpdir/pkgsel.$SDECFG_PKGSEL_TPL.awk
cat <<-EOT > $cfgtmpdir/pkgsel.$SDECFG_PKGSEL_TPL.awk
# created from '$SDECFG_PKGSEL_TPL' template
#
EOT
lib/sde-config/pkgsel2awk.sh \
$( ls -1 target/$target/pkgsel/{[0-9][0-9]-,}$SDECFG_PKGSEL_TPL.choice 2> /dev/null ) \
>> $cfgtmpdir/pkgsel.$SDECFG_PKGSEL_TPL.awk
fi
pkgfilter awk -f $cfgtmpdir/pkgsel.$SDECFG_PKGSEL_TPL.awk

Loading…
Cancel
Save