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