Re: partman-target_5_i386.changes REJECTED
On Thu, Jan 22, 2004 at 12:13:21PM -0500, Joey Hess wrote:
> Anton Zinoviev wrote:
> > What is the right procedure? I tried to do this:
> >
> > 1. Change UNRELEASED to unstable.
> > 2. Build the packages.
> > 3. Add new UNRELEASED version.
> > 4. cvs commit
> >
> > Is that correct?
>
> Here is the procedure I use:
>
> 1. cvs up
> 2. change UNRELEASED to unstable
> 3. build the packages
> 4. commit
> 5. tag the release
> 6. upload
I've attached the script that I use to make releases. It requires
pbuilder, and you'll want to replace upload-packages with dupload
or dput.
--
Matt Kraai http://ftbfs.org/ kraai@ftbfs.org
#!/bin/sh
set -e
directory=`cat CVS/Repository`
package=`dpkg-parsechangelog | sed -n 's/Source: //p'`
version=`dpkg-parsechangelog | sed -n 's/Version: //p'`
architecture=`dpkg-architecture -qDEB_HOST_ARCH`
tag_version=`echo $version | sed 's/\./_/g'`
changes=${package}_${version}_${architecture}.changes
# Ensure that the changelog is ready.
if head -1 debian/changelog | grep -q UNRELEASED; then
echo "debian/changelog is not ready." 1>&2
exit 1
fi
# Ensure that the package builds.
pdebuild
# Commit the changelog.
cvs commit -m "Release $version." debian/changelog
# Tag the release.
cvs tag debian_release_$tag_version .
tmp=`mktemp -d`
cd $tmp
mkdir result
# Export the release.
cvs -d kraai@cvs.debian.org:/cvs/debian-boot export -d $package -r debian_release_$tag_version $directory
# Build the release.
cd $package
pdebuild --buildresult ../result
# Sign it.
cd ../result
debsign $changes
# Upload it.
upload-package $changes
Reply to: