Browse Source

* adapted Config main loop to use lib/sde-config/pkgsel2awk.sh

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21855 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
6b678d2296
1 changed files with 14 additions and 10 deletions
  1. +14
    -10
      lib/sde-config/main.in

+ 14
- 10
lib/sde-config/main.in

@ -128,11 +128,13 @@ block_begin 7
if [ -f target/$target/pkgsel ]; then
if [ target/$target/pkgsel -nt $cfgtmpdir/pkgsel.$target.awk ]
then
( echo "# created from 'target-pkgsel'"
pkgsel_init
pkgsel_parse < target/$target/pkgsel
pkgsel_finish
) > $cfgtmpdir/pkgsel.$target.awk
cat <<-EOT > $cfgtmpdir/pkgsel.$target.awk
# created from target/$target/pkgsel
#
EOT
lib/sde-config/pkgsel2awk.sh \
target/$target/pkgsel >> $cfgtmpdir/pkgsel.$target.awk
fi
if [ -s $cfgtmpdir/pkgsel.$target.awk ]; then
@ -236,11 +238,13 @@ if [ "$SDECFG_PKGSEL" = 1 -a -f $cfgtmpdir/config/pkgsel ] ; then
fi
unset filter
( echo "# created from 'pkgsel'"
pkgsel_init
pkgsel_parse < $cfgtmpdir/config/pkgsel
pkgsel_finish
) > $cfgtmpdir/pkgsel.awk
cat <<-EOT > $cfgtmpdir/pkgsel.awk
# created from config/$config/pkgsel
#
EOT
lib/sde-config/pkgsel2awk.sh \
$cfgtmpdir/config/pkgsel >> $cfgtmpdir/pkgsel.$target.awk
pkgout
gawk -f $cfgtmpdir/pkgsel.awk < $cfgtmpdir/config/packages \

Loading…
Cancel
Save