From 16cf0e0061051bb85b7a8e8f8292b3aeaf3f15cf Mon Sep 17 00:00:00 2001 From: mbr Date: Wed, 31 Jul 2002 10:39:51 +0000 Subject: Make this script work for FreeBSD. --- editors/openoffice/files/patch-solenv+bin+mapgen.pl | 21 +++++++++++++++++++++ .../openoffice/files/patch-solenv::bin::mapgen.pl | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 editors/openoffice/files/patch-solenv+bin+mapgen.pl create mode 100644 editors/openoffice/files/patch-solenv::bin::mapgen.pl (limited to 'editors/openoffice') diff --git a/editors/openoffice/files/patch-solenv+bin+mapgen.pl b/editors/openoffice/files/patch-solenv+bin+mapgen.pl new file mode 100644 index 0000000..71ebdb9 --- /dev/null +++ b/editors/openoffice/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/files/patch-solenv::bin::mapgen.pl b/editors/openoffice/files/patch-solenv::bin::mapgen.pl new file mode 100644 index 0000000..71ebdb9 --- /dev/null +++ b/editors/openoffice/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, $_); + }; -- cgit v1.1