* 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