summaryrefslogtreecommitdiffstats
path: root/tools/export.sh
blob: 13a8f2765e714078df9b7e62c13575b6f7f38f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env sh

version="${1}"

if [ -z "$version" ] ; then
    echo "must supply version number"
    exit 1
fi

bk export . /tmp/bcfg2-${version}
bk changes -aer > /tmp/bcfg2-${version}/ChangeLog
cd /tmp/bcfg2-${version}/doc
make
cd /tmp
tar czf bcfg2-${version}.tar.gz bcfg2-${version}
gpg --sign /tmp/bcfg2-${version}.tar.gz
scp /tmp/bcfg2-${version}.tar.gz* terra.mcs.anl.gov:/nfs/ftp/pub/bcfg
scp /tmp/bcfg2-${version}.tar.gz* terra.mcs.anl.gov:/nfs/www-space-004/cobalt/bcfg2