diff options
author | Maximiliano Curia <maxy@debian.org> | 2012-01-04 00:00:53 +0100 |
---|---|---|
committer | Maximiliano Curia <maxy@debian.org> | 2012-01-04 00:00:53 +0100 |
commit | 825fd5668026f70071c7a5eef277b0bf5c8f02d2 (patch) | |
tree | 4d3a9112d9887ea16ab5dda07a7a791f15d3278f /src/oregano-convert |
Import oregano_0.70.orig.tar.gz
[dgit import orig oregano_0.70.orig.tar.gz]
Diffstat (limited to 'src/oregano-convert')
-rwxr-xr-x | src/oregano-convert | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/oregano-convert b/src/oregano-convert new file mode 100755 index 0000000..a6251f3 --- /dev/null +++ b/src/oregano-convert @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Fix the namespace. +while (<>) { + if (/<schematic/) { + s/</<ogo:/; + s/>/ xmlns:ogo="http:\/\/www.dtek.chalmers.se\/~d4hult\/oregano\/v1">/; + print; + last; + } + + if (/<schematic/) { + print; + last; + } + + print; +} + +# Add namespace to tags. +while (<>) { + + if (/<[a-zA-Z]/) { + s/</<ogo:/; + } + + s/<\//<\/ogo:/; + print; +} + + |