A collection of release tools used for Koha
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.

32 lines
1.0 KiB

  1. #!/bin/bash
  2. # Copyright 2011 Chris Nighswonger
  3. #
  4. # This is free software; you can redistribute it and/or modify it under the
  5. # terms of the GNU General Public License as published by the Free Software
  6. # Foundation; either version 2 of the License, or (at your option) any later
  7. # version.
  8. #
  9. # This is distributed in the hope that it will be useful, but WITHOUT ANY
  10. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License along with
  14. # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  15. # Suite 330, Boston, MA 02111-1307 USA
  16. #
  17. # TODO:
  18. # 1. More parameterization
  19. # 2. Add code to produce exit status
  20. VERSION=$1;
  21. BRANCH=$2;
  22. git archive --format=tar --prefix=koha-$VERSION/ $BRANCH | gzip > releases/koha-$VERSION.tar.gz
  23. cd releases
  24. gpg -sb koha-$VERSION.tar.gz
  25. md5sum koha-$VERSION.tar.gz > koha-$VERSION.tar.gz.MD5
  26. gpg --clearsign koha-$VERSION.tar.gz.MD5