r4332 - developers/tick/scripts

tick at sita.openmoko.org tick at sita.openmoko.org
Wed Apr 9 12:45:54 CEST 2008


Author: tick
Date: 2008-04-09 12:45:51 +0200 (Wed, 09 Apr 2008)
New Revision: 4332

Added:
   developers/tick/scripts/inverse_color.script
Log:
add a script the inverse the color setting of edc files


Added: developers/tick/scripts/inverse_color.script
===================================================================
--- developers/tick/scripts/inverse_color.script	2008-04-09 08:16:27 UTC (rev 4331)
+++ developers/tick/scripts/inverse_color.script	2008-04-09 10:45:51 UTC (rev 4332)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+echo Searching all the edc files
+FILES=`find -name '*.edc'`
+
+for ff in $FILES;do
+	echo $ff
+	# sed  -n "1045 s/color: *[0-9]* [0-9]* [0-9]*/color: 1 2 3/p" assassin.edc
+	awk "/color:/ {R=255-\$2;G=255-\$3;B=255-\$4;system(\"sed -i \'\" NR \" s/color: *[0-9]* [0-9]* [0-9]*/color: \"R\" \"G\" \"B\"/\' \"FILENAME \" \")}" $ff
+done


Property changes on: developers/tick/scripts/inverse_color.script
___________________________________________________________________
Name: svn:executable
   + *





More information about the commitlog mailing list