push 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/sh
  2. set -e
  3. ACPREP="./acprep --universal -j16 --warn opt"
  4. (cd plan/data; git push)
  5. (cd plan; git commit -a -m "Update TODO files" && git push)
  6. git checkout next
  7. perl -i -pe "s/([-abgrc][0-9]*)?\\]\\)/-$(date +%Y%m%d)])/;" version.m4
  8. git add version.m4
  9. echo git commit -m "v$(cat version.m4 | sed 's/.*\[//' | sed 's/\].*//')"
  10. git checkout master
  11. git merge --no-ff next
  12. git checkout next
  13. git rebase master
  14. git push
  15. git checkout master
  16. $ACPREP upload
  17. $ACPREP make dist
  18. scp ~/Products/ledger/opt/ledger-*.tar.* jw:/srv/ftp/pub/ledger
  19. openssl md5 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* > build/CHECKSUMS.txt
  20. openssl sha1 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* >> build/CHECKSUMS.txt
  21. openssl rmd160 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* >> build/CHECKSUMS.txt
  22. perl -i -pe 's/\/.*\///;' build/CHECKSUMS.txt
  23. scp build/CHECKSUMS.txt jw:/srv/ftp/pub/ledger
  24. rsync -az --delete ~/Products/ledger-proof/gcov/doc/report/ jw:/srv/ftp/pub/ledger/lcov/
  25. $ACPREP make speedtest 2>&1 | tee build/last-speed.txt
  26. mv *.dmg* ~/Products/ledger/opt/ledger-*.tar.* build
  27. git checkout next