This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove trailing blank lines when generating INSTALL


> +	awk 'NF == 0 { ++n; next } \

Use $(AWK).

> +	     NF != 0 { while (n-- > 0) print ""; n = 0; print }' \
> +	  < $@-tmp > $@-tmp2
> +	mv -f $@-tmp2 $@
> +	rm -f $@-tmp
>  	-chmod a-w $@

Put the rm before the mv (fewer stale files left behind if mv fails).
chmod $@-tmp2 before the mv.

Good with those changes.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]