File: guiseq

package info (click to toggle)
streamtuner2 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,432 kB
  • sloc: python: 8,976; makefile: 91; php: 51; sh: 7; perl: 3
file content (5 lines) | stat: -rwxr-xr-x 178 bytes parent folder | download | duplicates (7)
1
2
3
4
5
#!/usr/bin/perl -p

s{(<gui>)?(\w.+( > \w.+)+)(</gui>)?}{<guiseq><gui>$2</gui></guiseq>}im;
s{(\w.+?) > (\w.+?)}{$1</gui> <gui>$2}img;
s{(\w.+?) > (\w.+?)}{$1</gui> <gui>$2}img;