summaryrefslogtreecommitdiff
path: root/editors/openoffice-1.0/files
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-07-31 10:39:51 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-07-31 10:39:51 +0000
commitc0ec61915dfac6a9fcbaaaca80052debb1b61427 (patch)
treeb1567bc49bd3c7f1d5482d0ece00b05b03b6abc5 /editors/openoffice-1.0/files
parentAdd missing FreeBSD case. (diff)
Make this script work for FreeBSD.
Notes
Notes: svn path=/head/; revision=63799
Diffstat (limited to 'editors/openoffice-1.0/files')
-rw-r--r--editors/openoffice-1.0/files/patch-solenv+bin+mapgen.pl21
-rw-r--r--editors/openoffice-1.0/files/patch-solenv::bin::mapgen.pl21
2 files changed, 42 insertions, 0 deletions
diff --git a/editors/openoffice-1.0/files/patch-solenv+bin+mapgen.pl b/editors/openoffice-1.0/files/patch-solenv+bin+mapgen.pl
new file mode 100644
index 000000000000..71ebdb934120
--- /dev/null
+++ b/editors/openoffice-1.0/files/patch-solenv+bin+mapgen.pl
@@ -0,0 +1,21 @@
+--- ../solenv/bin/mapgen.pl.orig Sat Jul 20 22:30:21 2002
++++ ../solenv/bin/mapgen.pl Sat Jul 20 22:31:31 2002
+@@ -112,7 +112,7 @@
+
+ if ($ENV{OS} eq 'SOLARIS') {
+ &gen_sol;
+-} elsif ($ENV{OS} eq 'LINUX') {
++} elsif ($ENV{OS} eq 'LINUX' || $ENV{OS} eq 'FREEBSD') {
+ &gen_lnx;
+ } else {
+ &print_error ('Environment not set!!');
+@@ -169,7 +169,8 @@
+ s/\n//;
+ $env_section = '1' and next if ((/^# SOLARIS #$/) && ($ENV{OS} eq 'SOLARIS'));
+ $env_section = '1' and next if ((/^# LINUX #$/) && ($ENV{OS} eq 'LINUX'));
+- last if ($env_section && ((/^# SOLARIS #$/) || (/^# LINUX #$/)));
++ $env_section = '1' and next if ((/^# FREEBSD #$/) && ($ENV{OS} eq 'FREEBSD'));
++ last if ($env_section && ((/^# SOLARIS #$/) || (/^# LINUX #$/) || (/^# FREEBSD #$/)));
+ next if (!$_ || /^#/);
+ push(@filters, $_);
+ };
diff --git a/editors/openoffice-1.0/files/patch-solenv::bin::mapgen.pl b/editors/openoffice-1.0/files/patch-solenv::bin::mapgen.pl
new file mode 100644
index 000000000000..71ebdb934120
--- /dev/null
+++ b/editors/openoffice-1.0/files/patch-solenv::bin::mapgen.pl
@@ -0,0 +1,21 @@
+--- ../solenv/bin/mapgen.pl.orig Sat Jul 20 22:30:21 2002
++++ ../solenv/bin/mapgen.pl Sat Jul 20 22:31:31 2002
+@@ -112,7 +112,7 @@
+
+ if ($ENV{OS} eq 'SOLARIS') {
+ &gen_sol;
+-} elsif ($ENV{OS} eq 'LINUX') {
++} elsif ($ENV{OS} eq 'LINUX' || $ENV{OS} eq 'FREEBSD') {
+ &gen_lnx;
+ } else {
+ &print_error ('Environment not set!!');
+@@ -169,7 +169,8 @@
+ s/\n//;
+ $env_section = '1' and next if ((/^# SOLARIS #$/) && ($ENV{OS} eq 'SOLARIS'));
+ $env_section = '1' and next if ((/^# LINUX #$/) && ($ENV{OS} eq 'LINUX'));
+- last if ($env_section && ((/^# SOLARIS #$/) || (/^# LINUX #$/)));
++ $env_section = '1' and next if ((/^# FREEBSD #$/) && ($ENV{OS} eq 'FREEBSD'));
++ last if ($env_section && ((/^# SOLARIS #$/) || (/^# LINUX #$/) || (/^# FREEBSD #$/)));
+ next if (!$_ || /^#/);
+ push(@filters, $_);
+ };