trustedintents / make-release-build @ cba1dc86
History | View | Annotate | Download (446 Bytes)
1 |
#!/bin/bash |
---|---|
2 |
# bash is required because we need bash's printf to guarantee a cross-platform |
3 |
# timestamp format. |
4 |
|
5 |
set -e |
6 |
set -x |
7 |
|
8 |
# standardize timezone to reduce build differences |
9 |
export TZ=UTC |
10 |
# run the clock at 5% speed, ant requires a moving clock |
11 |
TIMESTAMP=`printf '@%(%Y-%m-%d %H:%M:%S)T x0.05' \ |
12 |
$(git log -n1 --format=format:%at)` |
13 |
|
14 |
git reset --hard |
15 |
git clean -fdx |
16 |
|
17 |
cd trustedintents |
18 |
./setup-ant |
19 |
|
20 |
faketime -f "$TIMESTAMP" ant release-all |