[ofa-general] Re: [PATCH v2] management/make.dist: Handle .spec files differently

Doug Ledford dledford at redhat.com
Thu May 31 09:12:00 PDT 2007


On Thu, 2007-05-31 at 12:05 -0400, Hal Rosenstock wrote:
> management/make.dist: Handle .spec files differently
> 
> No longer commit .spec files and remove them after tarball is created.
> 
> Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Ack-by: Doug Ledford <dledford at redhat.com>

> diff --git a/make.dist b/make.dist
> index 99481de..20d9ca4 100755
> --- a/make.dist
> +++ b/make.dist
> @@ -24,10 +24,10 @@ echo "code as released before even if yo
>  echo "around."
>  echo
>  echo "	As part of this process, the script will parse the <target>.spec.in"
> -echo "file and output a <target>.spec file and check that into the git repo"
> -echo "so it is included in the tag.  Since this script isn't smart enough"
> -echo "to deal with other random changes that should have their own checkin,"
> -echo "the script will refuse to run if the current repo state is not clean."
> +echo "file and output a <target>.spec file.  Since this script isn't smart"
> +echo "enough to deal with other random changes that should have their own" 
> +echo "checkin the script will refuse to run if the current repo state is not"
> +echo "clean."
>  echo
>  echo "	NOTE: the script has no clue if you are tagging on the right branch,"
>  echo "it will however show you the git branch output so you can confirm it"
> @@ -115,11 +115,10 @@ for target in $TARGETS; do
>  done
>  
>  if [ $1 = release ]; then
> -	echo "Checking in modified spec files and tagging release."
> +	echo "Removing modified spec files and tagging release."
>  	for target in $TARGETS; do
> -		git add $target/$target.spec
> +		rm -rf $target/$target.spec
>  	done
> -	git commit -m "Automatic check-in of target spec files after version processing"
>  	for target in $TARGETS; do
>  		VERSION=`grep "AC_INIT.*$target" $target/configure.in | cut -f 2 -d ',' | sed -e 's/ //g'`
>  		if [ ! -z "$2" ]; then
> 
> 
-- 
Doug Ledford <dledford at redhat.com>
              GPG KeyID: CFBFF194
              http://people.redhat.com/dledford

Infiniband specific RPMs available at
              http://people.redhat.com/dledford/Infiniband
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070531/4f879c2e/attachment.sig>


More information about the general mailing list