ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
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.
 
 
 
 
 
 

37 lines
690 B

  1. #!/bin/bash
  2. if [ "$1" == "" ] ; then
  3. echo "Usage (trunk|branches/name)"
  4. exit 1;
  5. fi
  6. rm -fr current-release
  7. mkdir current-release
  8. cd ..
  9. git archive $1 | tar -x -C tools/current-release
  10. cd tools
  11. VERSION=`grep CPPCMS_PACKAGE_VERSION current-release/CMakeLists.txt | sed 's/.*"\(.*\)".*/\1/'`
  12. DIRNAME=cppcms-$VERSION
  13. mv current-release $DIRNAME
  14. cd $DIRNAME
  15. doxygen
  16. cd ..
  17. tar -cjf $DIRNAME.tar.bz2 $DIRNAME
  18. rm -fr $DIRNAME
  19. pushd .
  20. if true
  21. then
  22. tar -xjf $DIRNAME.tar.bz2
  23. cd $DIRNAME
  24. mkdir -p ../../../www/$VERSION
  25. cp -a doc/doxygen/html/* ../../../www/$VERSION/
  26. cd ../../../www
  27. rm -f latest
  28. ln -s $VERSION latest
  29. fi
  30. popd
  31. mv $DIRNAME.tar.bz2 ../../releases/