# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: target/tardiba/config.in # Copyright (C) 2006 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- #Description: Tardiba - The Tasmanian Devil Database Server const SDECFG_TRG_TARDIBA ${target:-$SDECFG_TARGET} # helper functions get_target_choice() { cd target/$SDECFG_TARGET/$1 for x in $( ls -1 *.choice ); do grep -H "^# *Description *: " $x | tr ' ' '_' | sed -e 's,^[0-9][0-9]*-,,' \ -e 's,\.choice:#_*Description_*:_, ,' done } comment ' ' comment '- Target Hardware' # Hardware Vendor comment 'Vendor - Model - Product Number' choice SDECFG_TRG_TARDIBA_HW_VENDOR none none 'No Hardware Vendor specified' \ $( get_target_choice hardware ) if [ "$SDECFG_TRG_TARDIBA_HW_VENDOR" != "none" ] ; then # Hardware Model choice SDECFG_TRG_TARDIBA_HW_MODEL none none 'No Model specified' \ $( get_target_choice hardware/$SDECFG_TRG_TARDIBA_HW_VENDOR ) # Hardware P/N if [ "$SDECFG_TRG_TARDIBA_HW_MODEL" != "none" ] ; then choice SDECFG_TRG_TARDIBA_HW_PN none none 'No P/N specified' \ $( get_target_choice "hardware/$SDECFG_TRG_TARDIBA_HW_VENDOR/$SDECFG_TRG_TARDIBA_HW_MODEL" ) fi fi if [ ! -s $cfgtmpdir/tardiba.config.in ]; then SDECFG_TRG_MNEMOSYNE=$( cat ./target/$SDECFG_TRG_TARDIBA/extends ) if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_TARDIBA/pkgsel" TRG_TARDIBA \ $cfgtmpdir/tardiba.{config,rules,awkgen}.in; then echo "mnemosyne.pl failed!" rm -f $cfgtmpdir/tardiba.{config,rules,awkgen}.in fi fi if [ -s $cfgtmpdir/tardiba.config.in ]; then comment ' ' comment '- Target Options' . $cfgtmpdir/tardiba.rules.in . $cfgtmpdir/tardiba.config.in else comment ' ' comment 'ERROR: plugins config was not rendered!' fi comment ' ' menu_begin MENU_MNEMOSYNE 'Advanced Options'