mail[Wesnoth-commits] r33843 - /trunk/data/tools/Makefile


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on March 18, 2009 - 23:04:
Author: esr
Date: Wed Mar 18 23:04:50 2009
New Revision: 33843

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33843&view=rev
Log:
Add a production for listing campaigns by rank order.

Modified:
    trunk/data/tools/Makefile

Modified: trunk/data/tools/Makefile
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/Makefile?rev=33843&r1=33842&r2=33843&view=diff
==============================================================================
--- trunk/data/tools/Makefile (original)
+++ trunk/data/tools/Makefile Wed Mar 18 23:04:50 2009
@@ -82,6 +82,15 @@
 editor_bindings:
        @./extractbindings <../themes/editor.cfg 
 
+# Look at the difficulty-rank order of the campaigns
+rank:
+        @grep rank ../campaigns/*/_main.cfg | sed -n \
+               -e '/rank=/s///' \
+               -e '/..\/campaigns\//s///' \
+               -e '/\/_main.cfg:/s///p' \
+               | sort -n -k 2 \
+               | awk '{print $$2, "\t", $$1}'
+
 # For performing test lifts of mainline
 lift:
        ./wmllint --verbose $(MAINLINE) $(UMC)




Related Messages


Powered by MHonArc, Updated Wed Mar 18 23:20:31 2009