fc5db23894fbb5c5f5f25194170cb165974ef5e6
[releng.git] / jjb / compass4nfv / compass-makeppa.sh
1 #!/bin/bash
2 set -x
3 set -o errexit
4 set -o nounset
5 set -o pipefail
6 # make ppa
7 cd $WORKSPACE/
8 ./build/make_repo.sh
9 # calc SHA512 of ppa
10 cd $PPA_CACHE
11 for i in $(find *.gz *.iso *.img -type f)
12 do
13     sha512sum=$(sha512sum $i | cut -d ' ' -f1)
14     echo $sha512sum > $i.sha512
15     curl -T $i $PPA_REPO
16     curl -T $i.sha512 $PPA_REPO
17 done