<commit_before>#!/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.

 -- <NAME> <<EMAIL>>  $(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

<commit_msg>[FIXED HUDSON-2472] Updated the release script to rebuild Packages.gz 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.<commit_after>#!/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.

 -- <NAME> <<EMAIL>>  $(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


{'fraction_non_alphanumeric': 0.1226158038147139, 'fraction_numerical': 0.004768392370572207, 'mean_word_length': 4.190812720848056, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3780262', 'n_tokens_mistral': 570, 'n_tokens_neox': 509, 'n_words': 146}