4 # set up the system / install any deps
9 bzr branch lp:cirros trunk
11 bzr branch -r $VER trunk cirros-$VER
14 ./bin/build-release $VER 2>&1 | tee build-$VER.log
16 # pull that release content into an existing mirror dir
17 rsync -av --progress $USER@$HOST:/path/to/build-$VER/release $VER
19 ## now create simplestreams data ##
20 # to create simplestream data with mirror at $mirror_d
21 ( cd .. && bzr branch lp:simplestreams simplestreams )
22 bzr branch lp:cirros cirros
24 ./bin/mirror-dump-sstream-data "$mirror_d" > mdata.txt
25 ../simplestreams/tools/tenv tab2streams mdata.txt cirros-streams.d
26 ../simplestreams/tools/tenv env -u GNUPGHOME \
27 SS_GPG_BATCH=1 SS_GPG_DEFAULT_KEY=A5DDB840 js2signed cirros-streams.d
30 # to sign individual things
31 for x in "$out/release/"*; do
32 [ "${x%.asc}" = "$x" ] || continue
33 [ -e "$x.asc" ] && continue
34 gpg --armor --sign --detach-sig "$x"