summaryrefslogtreecommitdiffstats
path: root/jjb/compass4nfv/compass-makeppa.sh
blob: 83cc059c0b3655a6f4a3a63e4b1b6efaccfe0ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -x
set -o errexit
set -o nounset
set -o pipefail
# make ppa
cd $WORKSPACE/
./build/make_repo.sh
# calc MD5 of ppa
cd $PPA_CACHE
for i in $(find *.gz *.iso *.img -type f)
do
    md5=$(md5sum $i | cut -d ' ' -f1)
    echo $md5 > $i.md5
    curl -T $i $PPA_REPO
    curl -T $i.md5 $PPA_REPO
done