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

version="${1}"

if [ -z "$version" ] ; then
    echo "must supply version number"
    exit 1
fi
tagstr=`echo ${version} | sed -e 's/\./_/g'`
svn copy svn+ssh://terra.mcs.anl.gov/home/desai/svn/bcfg/trunk svn+ssh://terra.mcs.anl.gov/home/desai/svn/bcfg/tags/bcfg2_${tagstr} -m "tagged ${tagstr} release"
svn export . /tmp/bcfg2-${version}
svn log -v svn+ssh://terra.mcs.anl.gov/home/desai/svn/bcfg/tags/bcfg2_${tagstr} > /tmp/bcfg2-${version}/ChangeLog
cd /tmp/bcfg2-${version}/doc
make
cd /tmp
filename="/tmp/bcfg2-${version}.tar.gz"
tar czf "${filename}" bcfg2-${version}
gpg --armor --output "${filename}".gpg --detach-sig "${filename}"
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