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.

42 lines
1.3 KiB

  1. #!/bin/bash
  2. VERSION=$1
  3. PROJECTS_DIR=/home/openlp/Projects
  4. SOURCE_DIR=$PROJECTS_DIR/OpenLP/trunk
  5. RELEASE_DIR=release-$VERSION
  6. UPLOADS_DIR=/home/openlp/Projects/OpenLP/Uploads
  7. FILENAME=OpenLP-$VERSION.tar.gz
  8. #TSDIR=$RELEASE/resources/i18n
  9. #QMDIR=$RELEASE/openlp/i18n
  10. echo Starting the OpenLP Development Build Script
  11. echo --------------------------------------------
  12. echo -ne "Updating trunk...\r"
  13. cd $SOURCE_DIR
  14. bzr update -q
  15. echo "Updating trunk...done."
  16. echo -ne "Branching release tag (${VERSION})...\r"
  17. cd ..
  18. bzr branch trunk $RELEASE_DIR -r tag:$VERSION -q
  19. echo "Branching release tag (${VERSION})...done."
  20. echo -n "Creating source distribution..."
  21. cd /home/openlp/Projects/OpenLP/$RELEASE_DIR
  22. python setup.py sdist
  23. echo "done."
  24. echo -n "Copying release tarball..."
  25. cp dist/$FILENAME $UPLOADS_DIR/
  26. echo "done."
  27. echo -n "Updating Version File..."
  28. echo "$VERSION" > dev_version.txt
  29. scp dev_version.txt openlp@openlp.org:public_html/files/dev_version.txt
  30. rm dev_version.txt
  31. echo "Building sources for PPA..."
  32. ~/bin/build_dev_deb.sh $VERSION trusty
  33. ~/bin/build_dev_deb.sh $VERSION utopic
  34. ~/bin/build_dev_deb.sh $VERSION vivid
  35. echo -n "Cleaning up..."
  36. cd /home/openlp/Projects/OpenLP
  37. rm -r $RELEASE_DIR
  38. echo "done."
  39. echo --------------------------------------------
  40. echo Finished the OpenLP Development Build Script