release.sh 566 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # Script to realise easily new version
  3. # Run test, long form
  4. ./configure --enable-tests
  5. make test
  6. ./test.native
  7. if [ $? -ne 0 ]; then
  8. echo "Test failed!"
  9. exit 2
  10. else
  11. echo "All test passed!"
  12. fi
  13. # Set version
  14. ./version_set.sh $1
  15. # Record changes
  16. git commit -a -m "Version $(cat ./VERSION)"
  17. git tag -s v$(cat VERSION) -m "Release version $(cat VERSION)"
  18. # Cleanup dist directory to put the new archives, if exists
  19. if [ -d dist ]; then
  20. rm -r dist/*
  21. fi
  22. # Binary archives
  23. ./0install.sh
  24. # Source code
  25. ./pkg.sh
  26. # Signing everything
  27. ./sign-dist.sh