aboutsummaryrefslogtreecommitdiff
path: root/misc/lesspipe/files
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-12 13:19:08 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-12 13:19:08 +0000
commita99ea7e1dd34048ddb308e95d8255ea68576e08e (patch)
tree937e3b24de50b4783663d3613e4c167a38af9ebc /misc/lesspipe/files
parentbe4ae2c39aa4a2ab7ecca6f0fe87b2375604212e (diff)
downloadports-a99ea7e1dd34048ddb308e95d8255ea68576e08e.tar.gz
ports-a99ea7e1dd34048ddb308e95d8255ea68576e08e.zip
Notes
Diffstat (limited to 'misc/lesspipe/files')
-rw-r--r--misc/lesspipe/files/patch-configure42
-rw-r--r--misc/lesspipe/files/pkg-message.in7
2 files changed, 49 insertions, 0 deletions
diff --git a/misc/lesspipe/files/patch-configure b/misc/lesspipe/files/patch-configure
new file mode 100644
index 000000000000..7ede0aee6e37
--- /dev/null
+++ b/misc/lesspipe/files/patch-configure
@@ -0,0 +1,42 @@
+--- configure~ Thu Dec 9 09:30:52 2004
++++ configure Sat Dec 11 20:46:04 2004
+@@ -28,7 +28,7 @@
+ The Makefile is of little use (copy lesspipe.sh and code2color to the
+ install location)
+ EOF
+- exit;
++ exit !$opt_help ? 1 : 0;
+ }
+ $opt_prefix ||= '/usr/local';
+ open OUT, ">Makefile";
+@@ -188,7 +188,7 @@
+ my $rc = system "$have{file} -L ./configure >/dev/null 2>&1";
+ if ( $rc ) {
+ print " found system version of file, looking for GNU file\n";
+- exit unless inpath("Continue anyway", 'gfile');
++ exit 1 unless inpath("Continue anyway", 'gfile');
+ $have{file} = $have{gfile} if $have{gfile};
+ }
+ $rc = system "$have{file} -L ./configure >/dev/null 2>&1";
+@@ -215,7 +215,7 @@
+ $have{file} = $rep{file};
+ check_file_vers();
+ }
+- exit if $yesno =~ /^n/i;
++ exit 1 if $yesno =~ /^n/i;
+ } else {
+ $have{file} .= ' -L -s';
+ print " found GNU file$vers (ok)\n";
+@@ -277,10 +277,10 @@
+ print OUT "#!$file$opt\n";
+ $selected_shell = $name if ! $selected_shell;
+ }
+- if ( $#bad == 2 ) {
++ if ( !$selected_shell ) {
+ print "Sorry, no useable shell found, cannot create lesspipe.sh\n", @bad;
+ print "You could edit lesspipe.sh.in to adjust the path to the shell(s)\n";
+- exit;
++ exit 1;
+ } else {
+ print OUT @bad;
+ }
diff --git a/misc/lesspipe/files/pkg-message.in b/misc/lesspipe/files/pkg-message.in
new file mode 100644
index 000000000000..7d31ac813eda
--- /dev/null
+++ b/misc/lesspipe/files/pkg-message.in
@@ -0,0 +1,7 @@
+To use lesspipe.sh, type in the following commands
+
+LESSOPEN="|%%PREFIX%%/bin/lesspipe.sh %s"; export LESSOPEN (sh, bash, ksh, zsh)
+
+setenv LESSOPEN "|%%PREFIX%%/bin/lesspipe.sh %s" (csh, tcsh)
+
+or put these commands in your shell's startup file (e.g. .cshrc or .bashrc).