Mnemosyne is a abstract distribution originally designed for ROCKLinux, but currently only support the trunk of OpenSDE.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

  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 ---
  14. #Description: Mnemosyne Linux
  15. const SDECFG_TRG_MNEMOSYNE ${target:-$SDECFG_TARGET}
  16. case "$sdever" in
  17. trunk) CFGTEMP_TREE=0 ;;
  18. vapor) CFGTEMP_TREE=0 ;;
  19. *) comment " "
  20. comment "ERROR: Your version ($sdever) is not supported"
  21. comment " by this tree of mnemosyne!"
  22. comment " "
  23. CFGTEMP_TREE=unknown ;;
  24. esac
  25. hack_stages() {
  26. local stage="$1----------"; shift
  27. local pkgs="$*"
  28. if [ $# -gt 1 ]; then
  29. pkgs="${pkgs// /\|}"
  30. elif [ $# -eq 1 ]; then
  31. true
  32. fi
  33. if [ "$pkgs" ]; then
  34. pkgfilter sed -e "s,^\(.\) [^ ]* \([^ ]*\) \([^ ]*\) \($pkgs\) ,\1 ${stage:0:10} \2 \3 \4 ,"
  35. fi
  36. }
  37. if [ ! -s $cfgtmpdir/mnemosyne.config.in ]; then
  38. if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_MNEMOSYNE/pkgsel" TRG_MNEMOSYNE \
  39. $cfgtmpdir/mnemosyne.{config,rules,awkgen}.in; then
  40. echo "mnemosyne.pl failed!"
  41. rm -f $cfgtmpdir/mnemosyne.{config,rules,awkgen}.in
  42. fi
  43. fi
  44. rm -f "$cfgtmpdir/mnemosyne.postpkgfilter.in"
  45. if [ -s "$cfgtmpdir/mnemosyne.config.in" ]; then
  46. . "$cfgtmpdir/mnemosyne.rules.in"
  47. . "$cfgtmpdir/mnemosyne.config.in"
  48. else
  49. comment ' '
  50. comment 'ERROR: plugins config was not rendered!'
  51. comment ' '
  52. fi