[Gnucash-changes] r14214 - gnucash/trunk - only conditionally remove the file.

Derek Atkins warlord at MIT.EDU
Sun May 28 10:42:00 EDT 2006


Wouldn't it just be easier to change "rm" to "rm -f"?

-derek

Quoting Joshua Sled <jsled at cvs.gnucash.org>:

> Modified: gnucash/trunk/Makefile.TAGS
> ===================================================================
> --- gnucash/trunk/Makefile.TAGS	2006-05-28 02:23:37 UTC (rev 14213)
> +++ gnucash/trunk/Makefile.TAGS	2006-05-28 14:34:50 UTC (rev 14214)
> @@ -17,9 +17,9 @@
> # we don't need an etags.files dep here b/c you always call this after
> # re-generating etags.files if needed from the top-level Makefile.am.
> TAGS: $(shell cat etags.files)
> -	rm TAGS
> +	if [ -f TAGS ]; then rm TAGS; fi
> 	cat etags.files | xargs -n 200 etags --append
>
> tags: $(shell cat etags.files)
> -	rm tags
> +	if [ -f TAGS ]; then rm tags; fi
> 	cat etags.files | xargs -n 200 ctags --append
>
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list