cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject spec commit: [CB-2913] toetag inserts in place works with (around) ios sed/stdin security, produces backup (.bak) files for files that have changed inserts tag id's in place
Date Fri, 05 Apr 2013 23:58:37 GMT
Updated Branches:
  refs/heads/toetagger b0e1455e6 -> 05bebb515


[CB-2913] toetag inserts in place
works with (around) ios sed/stdin security,
produces backup (.bak) files for files that have changed
inserts tag id's in place


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/05bebb51
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/05bebb51
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/05bebb51

Branch: refs/heads/toetagger
Commit: 05bebb515e6376fea64fd3aef2bb1d072f157a2a
Parents: b0e1455
Author: Md Monirul Islam <lorin@adobe.com>
Authored: Fri Apr 5 16:54:09 2013 -0700
Committer: Md Monirul Islam <lorin@adobe.com>
Committed: Fri Apr 5 16:54:09 2013 -0700

----------------------------------------------------------------------
 bin/toetag |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/05bebb51/bin/toetag
----------------------------------------------------------------------
diff --git a/bin/toetag b/bin/toetag
index 6a8ff27..105661d 100755
--- a/bin/toetag
+++ b/bin/toetag
@@ -55,21 +55,15 @@ toetagtargets() {
         temp=$IFS
         IFS="
 "
-        for line in $(cat $defaultpath$file)
+        totag=$(grep $specreg $defaultpath$file | grep -v $tagged)
+        echo $totag
+        for line in $totag
         do
-#            if [[ "$(grep -c $tagged $line)" -eq "1" ]]
-#            then
-#               echo aosehusaehou 
-#            fi
-            #echo $line
-            isTag=$(echo $line | grep -c $tagged)
-            canTag=$(echo $line | grep -c $specreg)
-
-            if [[ $canTag -eq '1' && $isTagged -ne '1' ]]
-            then
-                tagcode=$tagcode+1
-                echo $line | sed s/it\(\"/it\(\"$suitename.spec.$tagcode\ /
-            fi
+            tagcode=$tagcode+1
+            modline=$(echo $line | sed s/it\(\"/it\(\"$suitename.spec.$tagcode\ /)
+            sed -i '.bck' s/$line/$modline/g $defaultpath$file
+            echo $modline
+          #  echo $line | sed s/$line/it\(\"$suitename.spec.$tagcode\ /
 
             # guy=$(grep -c $tagged $line)
             #echo $tagcode


Mime
View raw message