Browse Source

* improved mnemosyne to set (and use) SDECFG_TRG_MNEMOSYNE with it's target id

legacy/multilib
Alejandro Mery 19 years ago
parent
commit
cd636a607d
4 changed files with 7 additions and 7 deletions
  1. +2
    -2
      config.in
  2. +2
    -1
      mnemosyne.pl
  3. +2
    -3
      parse-config
  4. +1
    -1
      pkg_conf/dropbear.conf

+ 2
- 2
config.in

@ -13,11 +13,11 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
CFGTEMP_TRG_MNEMOSYNE_TRGDIR=./target/mnemosyne2
const SDECFG_TRG_MNEMOSYNE ${target:-$SDECFG_TARGET}
if [ ! -s $cfgtmpdir/mnemosyne.config.in ]; then
if ! perl $CFGTEMP_TRG_MNEMOSYNE_TRGDIR/mnemosyne.pl "$CFGTEMP_TRG_MNEMOSYNE_TRGDIR/pkgsel" TRG_MNEMOSYNE \
if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_MNEMOSYNE/pkgsel" TRG_MNEMOSYNE \
$cfgtmpdir/mnemosyne.{config,rules,awkgen}.in; then
echo "mnemosyne.pl failed!"
rm -f $cfgtmpdir/mnemosyne.{config,rules,awkgen}.in

+ 2
- 1
mnemosyne.pl

@ -573,11 +573,12 @@ sub render_rules_nomodule {
sub render_rules {
open(my $FILE,'>',$_[0]);
my $root="CFGTEMP_$_[1]";
select $FILE;
# clean folder enablers
print "#\n# folder enablers\n#\n\n";
for (@$::FOLDERS) { print "$_=\n"; }
for (@$::FOLDERS) { print "$_=\n" unless /^$root$/; }
# pkgsel list
for (@$::MODULES) {

+ 2
- 3
parse-config

@ -13,7 +13,6 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
target=mnemosyne2
if [ -f $base/target/$target/pkg_conf/$pkg.conf ]; then
. $base/target/$target/pkg_conf/$pkg.conf
if [ -f $base/target/$SDECFG_TRG_MNEMOSYNE/pkg_conf/$pkg.conf ]; then
. $base/target/$SDECFG_TRG_MNEMOSYNE/pkg_conf/$pkg.conf
fi

+ 1
- 1
pkg_conf/dropbear.conf

@ -13,4 +13,4 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
. $base/target/$target/pkg_conf/openssh.conf
. $base/target/$SDECFG_TRG_MNEMOSYNE/openssh.conf

Loading…
Cancel
Save