Files
jenkins/release-debian.sh
T
2009-01-05 21:13:43 +00:00

29 lines
763 B
Bash
Executable File

#!/bin/bash -ex
# build a debian package from a release build
ver=$1
cp target/checkout/war/target/hudson.war hudson.war
(cat << EOF
hudson ($ver) unstable; urgency=low
* See http://hudson.dev.java.net/changelog.html for more details.
-- Kohsuke Kawaguchi <kk@kohsuke.org> $(date -R)
EOF
cat debian/changelog ) > debian/changelog.tmp
mv debian/changelog.tmp debian/changelog
# build the debian package
debuild -us -uc -B
scp ../hudson_${ver}_all.deb hudson.gotdns.com:~/public_html_hudson/debian/binary
# build package index
pushd ..
mkdir binary > /dev/null 2>&1 || true
mv hudson_${ver}_all.deb binary
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
scp binary/Packages.gz hudson.gotdns.com:~/public_html_hudson/debian/binary
popd