Index: trunk/extensions/Wikidata/OmegaWiki/small/ra3.pl |
— | — | @@ -83,11 +83,11 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | foreach my $item (@tomatch) { |
87 | | - #print ">".@$item[0].",".@$item[1]."\n"; |
88 | 87 | my $name=@$item[0]; |
89 | 88 | my $type=@$item[1]; |
90 | | - my $ending=$type unless $type=="Attribute"; |
91 | | - $statement=~s/\$($name)$type(\W)/\$o\-\>${name}${ending}$2/gm; |
| 89 | + my $ending=$type unless $type eq "Attribute"; |
| 90 | + #print ">>>> n: $name t: $type e: $ending\n"; |
| 91 | + $statement=~s/\$${name}${type}/\$o\-\>${name}${ending}/gm; |
92 | 92 | } |
93 | 93 | $statement=~s/->getAttributeValue\(\s*\$o->(\w+)\s*\)/->$1/g; |
94 | 94 | $statement=~s/\-\>setAttributeValue\(\s*\$o->(\w+)\s*,\s*(.*)\s*\)/->$1 = $2/g; |
Index: trunk/extensions/Wikidata/OmegaWiki/small/go.sh |
— | — | @@ -0,0 +1,6 @@ |
| 2 | +#!/bin/sh |
| 3 | + |
| 4 | +svn revert *.php |
| 5 | +for a in *.php; do small/autoreplace.sh $a; done; |
| 6 | +cp done/* . |
| 7 | + |
Property changes on: trunk/extensions/Wikidata/OmegaWiki/small/go.sh |
___________________________________________________________________ |
Added: svn:executable |
1 | 8 | + * |