Author: mordante
Date: Fri Jul 18 09:00:38 2008
New Revision: 28065

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28065&view=rev
Log:
Remove the temp file for the revision number after usage instead of flooding 
/tmp with them.

Modified:
    trunk/src/Makefile.am

Modified: trunk/src/Makefile.am
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/Makefile.am?rev=28065&r1=28064&r2=28065&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Fri Jul 18 09:00:38 2008
@@ -371,7 +371,8 @@
 revision.hpp: FORCE
        if [ "$(REVISION)" == "" ] || [ "$(REVISION)" == "exported" ]; then 
echo '' >/tmp/westemp$$$$; \
        else echo '#define REVISION    "$(REVISION)"' >/tmp/westemp$$$$; fi;\
-       if cmp -s revision.hpp /tmp/westemp$$$$ 2>/dev/null; then :; else cp 
/tmp/westemp$$$$ revision.hpp; fi
+       if cmp -s revision.hpp /tmp/westemp$$$$ 2>/dev/null; then :; else cp 
/tmp/westemp$$$$ revision.hpp; fi; \
+       if [ -e /tmp/westemp$$$$ ]; then rm /tmp/westemp$$$$; fi
 
 FORCE:
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to