libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/6] maint: use sed instead of maintaining 2 README files.


From: Ralf Wildenhues
Subject: Re: [PATCH 6/6] maint: use sed instead of maintaining 2 README files.
Date: Sat, 18 Sep 2010 08:40:48 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

* Gary V. Vaughan wrote on Sat, Sep 18, 2010 at 07:20:18AM CEST:
> * README.alpha: Deleted.  It was mostly identical to README.
> * libltdl/config/edit-readme-alpha: New script to edit the
> contents of README in the dist tree prior to tarring up.
> * Makefile.am (dist-hook): Run it before rolling alpha release
> tarball.

For what it's worth ...

> --- /dev/null
> +++ b/libltdl/config/edit-readme-alpha

> +for file in "$@"; do
> +  trap 'x=$?; rm $file.T; exit $x' 1 2 13 15
> +
> +  sed -e '/^This is GNU Libtool,/,/^interface.$/c\
> +This is an alpha testing release of GNU Libtool, a generic library\
> +support script.  Libtool hides the complexity of using shared libraries\
> +behind a consistent, portable interface.' $file > $file.T \

this script will wrongly exit with status 0 if the stdout redirection
fails at this point.

> +    && mv -f $file.T $file
> +
> +  test -f $file.T && {
> +    rm $file.T
> +    echo "$0: unable to edit $file"
> +    exit 1
> +  }
> +done
> +
> +exit 0

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]