Improved mnemosyne vserver module to include beecrypt as vhashify depends on it
[mnemosyne.git] / config.in
blobf7de8139c2ebe265d64c9874241489624be7ec09
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # Filename: target/mnemosyne/config.in
5 # Copyright (C) 2002 - 2006 Alejandro Mery
6
7 # More information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- SDE-COPYRIGHT-NOTE-END ---
15 #Description: Mnemosyne Linux
17 const SDECFG_TRG_MNEMOSYNE ${target:-$SDECFG_TARGET}
19 case "$sdever" in
20         trunk)  CFGTEMP_TREE=0 ;;
21         vapor)  CFGTEMP_TREE=0 ;;
22         *)      comment " "
23                 comment "ERROR: Your version ($sdever) is not supported"
24                 comment "       by this tree of mnemosyne!"
25                 comment " "
26                 CFGTEMP_TREE=unknown    ;;
27 esac
29 hack_stages() {
30         local stage="$1----------"; shift
31         local pkgs="$*"
33         if [ $# -gt 1 ]; then
34                 pkgs="${pkgs// /\|}"
35         elif [ $# -eq 1 ]; then
36                 true
37         fi
39         if [ "$pkgs" ]; then
40                 pkgfilter sed -e "s,^\(.\) [^ ]* \([^ ]*\) \([^ ]*\) \($pkgs\) ,\1 ${stage:0:10} \2 \3 \4 ,"
41         fi
44 if [ ! -s $cfgtmpdir/mnemosyne.config.in ]; then
46         if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_MNEMOSYNE/pkgsel" TRG_MNEMOSYNE     \
47                 $cfgtmpdir/mnemosyne.{config,rules,awkgen}.in; then
48                 echo "mnemosyne.pl failed!"
49                 rm -f $cfgtmpdir/mnemosyne.{config,rules,awkgen}.in
50         fi
53 rm -f "$cfgtmpdir/mnemosyne.postpkgfilter.in"
54 if [ -s "$cfgtmpdir/mnemosyne.config.in" ]; then
55         . "$cfgtmpdir/mnemosyne.rules.in"
56         . "$cfgtmpdir/mnemosyne.config.in"
57 else
58         comment ' '
59         comment 'ERROR: plugins config was not rendered!'
60         comment ' '