xfs
[Top] [All Lists]

Re: release.sh, take two

To: xfs@xxxxxxxxxxx
Subject: Re: release.sh, take two
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 29 Apr 2009 10:47:34 -0400
In-reply-to: <20090429141108.GA14578@xxxxxxxxxxxxx>
References: <20090429141108.GA14578@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Apr 29, 2009 at 10:11:08AM -0400, Christoph Hellwig wrote:
> A new release script, now using Makepkgs to simply things.  Needs to
> be run from the repository directory.
> 
> Anyone fine with commiting a copy to each of the repositories?

And now with actual content:


#!/bin/sh

. VERSION

version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
date=`date +"%-d %B %Y"`

echo "Updating CHANGES"
sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
        mv doc/CHANGES.tmp doc/CHANGES

echo "Commiting CHANGES update to git"
git-commit -a -m "${version} release"

echo "Tagging git repository"
git-tag v${version}

echo "Creating source tarball in build/tar/"
./Makepkgs

echo "Done."
echo "Please remember to push out tags using \"git push --tags\""

<Prev in Thread] Current Thread [Next in Thread>