summaryrefslogtreecommitdiff
path: root/tools/push
blob: 0333cf9cf7f638f8a0b703e96598b05c9efccc01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

set -e

ACPREP="./acprep --universal -j16 --warn opt"

(cd plan/data; git push)
(cd plan; git commit -a -m "Update TODO files" && git push)

git checkout next

perl -i -pe "s/([-abgrc][0-9]*)?\\]\\)/-$(date +%Y%m%d)])/;" version.m4
git add version.m4
echo git commit -m "v$(cat version.m4 | sed 's/.*\[//' | sed 's/\].*//')"

git checkout master
git merge --no-ff next
git checkout next
git rebase master
git push

git checkout master
$ACPREP upload
$ACPREP make dist

scp ~/Products/ledger/opt/ledger-*.tar.* jw:/srv/ftp/pub/ledger
openssl md5 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* > build/CHECKSUMS.txt
openssl sha1 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* >> build/CHECKSUMS.txt
openssl rmd160 *.dmg* ~/Products/ledger/opt/ledger-*.tar.* >> build/CHECKSUMS.txt
perl -i -pe 's/\/.*\///;' build/CHECKSUMS.txt
scp build/CHECKSUMS.txt jw:/srv/ftp/pub/ledger

rsync -az --delete ~/Products/ledger-proof/gcov/doc/report/ jw:/srv/ftp/pub/ledger/lcov/

$ACPREP make speedtest 2>&1 | tee build/last-speed.txt

mv *.dmg* ~/Products/ledger/opt/ledger-*.tar.* build

git checkout next