OpenSDE Framework (without history before r20070)
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.

34 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: lib/sde-binary/preconfig.in
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  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. if [ ! -f $cfgtmpdir/cache_pkgfile_type.in ]; then
  15. cat <<EOT > $cfgtmpdir/cache_pkgfile_type.in
  16. comment ' '
  17. comment '- Binary package format'
  18. block_begin 3
  19. choice SDECFG_PKGFILE_TYPE tar.bz2 \\
  20. EOT
  21. # generate choices
  22. for x in tar.{bz2,gz,lzo} \
  23. $( ls -1 lib/sde-binary/package-*.sh 2> /dev/null |
  24. sed -e 's,.*/package-\(.*\).sh,\1,' ); do
  25. $ECHO_E "\t\t${x} 'Create ${x} binary packages' \\" >> $cfgtmpdir/cache_pkgfile_type.in
  26. done
  27. cat <<EOT >> $cfgtmpdir/cache_pkgfile_type.in
  28. none 'Create no binary packages'
  29. bool 'Append version number to package files' SDECFG_PKGFILE_VER 1
  30. block_end
  31. EOT
  32. fi