summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
commite3afe2298e821d7f5860128720e665d8fb3bd641 (patch)
treebfb499432688352b1140b13ad8252c8e4e739006 /less
downloadcore-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.gz
core-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.xz
create branch for 2.2
Diffstat (limited to 'less')
-rw-r--r--less/.footprint13
-rw-r--r--less/.md5sum3
-rw-r--r--less/Pkgfile19
-rwxr-xr-xless/filter26
-rw-r--r--less/lessecho.142
5 files changed, 103 insertions, 0 deletions
diff --git a/less/.footprint b/less/.footprint
new file mode 100644
index 00000000..210aa14d
--- /dev/null
+++ b/less/.footprint
@@ -0,0 +1,13 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/less
+-rwxr-xr-x root/root usr/bin/lessecho
+-rwxr-xr-x root/root usr/bin/lesskey
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/less/
+-rwxr-xr-x root/root usr/lib/less/filter
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/less.1.gz
+-rw-r--r-- root/root usr/man/man1/lessecho.1.gz
+-rw-r--r-- root/root usr/man/man1/lesskey.1.gz
diff --git a/less/.md5sum b/less/.md5sum
new file mode 100644
index 00000000..dcaaff99
--- /dev/null
+++ b/less/.md5sum
@@ -0,0 +1,3 @@
+f06b1ac546473282a7b2eb556af5cdbf filter
+103fe4aef6297b93f0f73f38cc3b1bd7 less-382.tar.gz
+17db15511c637a8879883a77f4a95a0e lessecho.1
diff --git a/less/Pkgfile b/less/Pkgfile
new file mode 100644
index 00000000..632ca481
--- /dev/null
+++ b/less/Pkgfile
@@ -0,0 +1,19 @@
+# Description: A terminal based program for viewing text files
+# URL: http://www.greenwoodsoftware.com/less/
+# Maintainer: Per Lidén <per@fukt.bth.se>
+# Depends on: ncurses
+
+name=less
+version=382
+release=1
+source=(http://www.greenwoodsoftware.com/less/$name-$version.tar.gz \
+ lessecho.1 filter)
+
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr
+ make
+ make prefix=$PKG/usr install
+ install -m 644 ../lessecho.1 $PKG/usr/man/man1
+ install -m 755 -D ../filter $PKG/usr/lib/less/filter
+}
diff --git a/less/filter b/less/filter
new file mode 100755
index 00000000..d483d0f0
--- /dev/null
+++ b/less/filter
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# /usr/lib/less/filter: less(1) filter
+#
+# To use: export LESSOPEN="|/usr/lib/less/filter %s"
+#
+
+filter() {
+ case "$1" in
+ *.[1-9n]) cat "$1" | nroff -c -mandoc | cat -s ;;
+ *.[1-9n].gz) zcat "$1" | nroff -c -mandoc | cat -s ;;
+ *.[1-9n].bz2) bzcat "$1" | nroff -c -mandoc | cat -s ;;
+ *.tar) tar tvvf "$1" ;;
+ *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;;
+ *.tbz2|*.tar.bz2) tar tjvvf "$1" ;;
+ *.[zZ]|*.gz) gzip -dc "$1" ;;
+ *.bz2) bzip2 -dc "$1" ;;
+ *.zip) zipinfo "$1" ;;
+ *.rpm) dd ibs=`/usr/lib/rpm2targz/rpmoffset < "$1"` skip=1 if="$1" | gzip -dc | cpio -tv ;;
+ *.cpio) cpio -itv < "$1" ;;
+ esac
+}
+
+filter "$1" 2> /dev/null
+
+# End of file
diff --git a/less/lessecho.1 b/less/lessecho.1
new file mode 100644
index 00000000..89daabd1
--- /dev/null
+++ b/less/lessecho.1
@@ -0,0 +1,42 @@
+.TH LESSECHO 1
+.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
+.\" other parms are allowed: see man(7), man(1)
+.SH NAME
+lessecho \- expand metacharacters, such as * and ?, in filenames on Unix
+systems.
+.SH SYNOPSIS
+.B lessecho
+.I "[-ox] [-cx] [-pn] [-dn] [-a] file ..."
+.SH "DESCRIPTION"
+This manual page documents briefly the
+.BR lessecho
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+.B lessecho
+is a program that simply echos its filename arguments on standard output. But
+any argument containing spaces is enclosed in quotes.
+.SH OPTIONS
+A summary of options are included below.
+.TP
+.B \-ox
+Specifies "x" to be the open quote character.
+.TP
+.B \-cx
+Specifies "x" to be the close quote character.
+.TP
+.B \-pn
+Specifies "n" to be the open quote character, as an integer.
+.TP
+.B \-dn
+Specifies "n" to be the close quote character, as an integer.
+.TP
+.B \-a
+Specifies that all arguments are to be quoted. The default is that only
+arguments containing spaces are quoted.
+.SH "SEE ALSO"
+less(1)
+.SH AUTHOR
+This manual page was written by Thomas Schoepf <schoepf@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).

Generated by cgit