mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 04:55:21 +00:00
For now this means I can only release Hudson from a debian box, but I couldn't figure out how to install dpkg-scanpackages on Solaris. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13521 71c3de6d-444a-0410-be80-ed276b4c234a
29 lines
746 B
Bash
Executable File
29 lines
746 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 || 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
|
|
|