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.

.build.sh 505B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set +x
  3. project=matriz
  4. pkgs=/var/www/pkgs/$project
  5. demo=/var/www/demo/programs
  6. src=/var/www/pkgs/$project/src
  7. obj=matriz.sh
  8. git pull origin master
  9. echo "compress"
  10. git archive --format=tar -o $project.tar.gz HEAD
  11. git archive --format=zip -o $project.zip HEAD
  12. echo "sign"
  13. sha256sum *.tar.gz *.zip > sha256sums.txt
  14. gpg --pinentry-mode loopback --passphrase $gpgpass --batch --yes --detach-sign -a sha256sums.txt
  15. echo "copy"
  16. mv $project.tar.gz $project.zip sha256sums.txt* $pkgs
  17. cp $obj $demo