1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11-wm/windowmaker-i18n/files/patch-am

28 lines
909 B
Plaintext
Raw Normal View History

--- util/wm-oldmenu2new.orig Wed Jan 20 21:39:18 1999
+++ util/wm-oldmenu2new Wed Jan 20 21:39:29 1999
@@ -112,7 +112,7 @@
# This is the interesting bit. Edit the old style menu and
# convert into new style property-list menu.
#
-perl - $T <<-'EOF' > $T-p
+%%PERL%% - $T <<-'EOF' > $T-p
$v=chr(22);
for (<>) {
push @foo,$_;
@@ -127,6 +127,7 @@
for (@foo2) {
s/^(\s*)"([^"]*)"\s\s*END/\1),/;
s/^(\s*)"([^"]*)"\s\s*EXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1EXEC,$v\n\1"\3"$v\n\1),/;
+ s/^(\s*)"([^"]*)"\s\s*SHEXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1SHEXEC,$v\n\1"\3"$v\n\1),/;
push @foo,split "\n";
}
@foo2=();
@@ -144,6 +145,7 @@
for (@foo) {
s/^(\s*)([^ ]*)\s\s*END/\1),/;
s/^(\s*)([^ ]*)\s\s*EXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1EXEC,$v\n\1"\3"$v\n\1),/;
+ s/^(\s*)([^ ]*)\s\s*SHEXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1SHEXEC,$v\n\1"\3"$v\n\1),/;
push @foo2,split "\n";
}
@foo=();