Browse Source

update script

Bill Gianopoulos 3 years ago
parent
commit
af0c1e71fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/do_check2Assert.sh

+ 1 - 1
scripts/do_check2Assert.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
-find . -name .hg -prune -o -name '*.js' -exec egrep 'do_check_eq\(|do_check_neq\(|do_check_true\(|do_check_false\('  {} \; -a -print | grep '^\./' >~/mozilla/files
+find . -name .hg -prune -o -name comm -prune -o -name '*.js' -exec egrep 'do_check_eq\(|do_check_neq\(|do_check_true\(|do_check_false\('  {} \; -a -print | grep '^\./' >~/mozilla/files
 for i in `cat /home/wag/mozilla/files` ; do  echo $i; cp $i $i.original; sed -e 's@todo_check_@doxyzzycheck_@g' -e 's@_do_check_@UdoUcheckU@g' -e 's@do_check_eq[(]@Assert.equal(@g' -e 's@do_check_neq[(]@Assert.notEqual(@g' -e 's@do_check_true[(]@Assert.ok(@g' -e 's@do_check_false[(]@Assert.ok(!@g' -e 's@UdoUcheckU@_do_check_@g' -e 's@doxyzzycheck_@todo_check_@g' < $i.original > $i; rm $i.original; done