Collection of DPF-based plugins for packaging
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.

60 lines
1.1KB

  1. #!/bin/sh
  2. export TARGET_DIR=$1
  3. export VERSION=$2
  4. # Build targets
  5. export GZ=ON
  6. export BZ2=OFF
  7. #export SOURCE=ON
  8. # CG Enablement
  9. export CG=ON
  10. # FTGL Enablement
  11. export FTGL=ON
  12. # openmp Enablement
  13. export OPENMP=ON
  14. publish() {
  15. OLDDIR=`pwd`
  16. DIR=$1
  17. echo "publishing ${DIR}..."
  18. cd ${DIR}
  19. svn-clean -f
  20. cmake -DUSE_FTGL=${FTGL} -DCPACK_SOURCE_TGZ=${GZ} -DUSE_OPENMP=${OPENMP} -DCPACK_SOURCE_TBZ2=${BZ2} -DCPACK_SOURCE_Z=OFF -DCPACK_SOURCE_TZ=OFF -DUSE_CG=${ON} -DCMAKE_BUILD_TYPE=Release > ${TARGET_DIR}/projectm-publish.log 2>&1
  21. make package_source
  22. cp *.gz -f ${TARGET_DIR}
  23. cd ${OLDDIR}
  24. }
  25. release() {
  26. scp ${TARGET_DIR}/*.gz w1z7ard,projectm@frs.sourceforge.net:/home/frs/project/p/pr/projectm/${VERSION}
  27. }
  28. publish "libprojectM"
  29. publish "../fonts"
  30. publish "../presets"
  31. publish "../presets_milkdrop_104"
  32. publish "../presets_milkdrop_200"
  33. publish "../presets_milkdrop"
  34. publish "../presets_projectM"
  35. publish "projectM-qt"
  36. publish "projectM-test"
  37. publish "projectM-libvisual"
  38. publish "projectM-libvisual-alsa"
  39. publish "projectM-pulseaudio"
  40. publish "projectM-jack"
  41. publish ".."
  42. release
  43. echo "[publisher] complete."
  44. exit