shlist stable port information

Package: shlist
Version: 1.0
Revision: 1
Description: Sets up simple database in a shell
License: GPL
Maintainer: Jason Park
Source: http://www.braham.net/Phil/Linux_utils/%n/%n.zip
SourceRename: %n-%v.zip
Source-MD5: 76db42c052bda2048e13a76b31f277f4
NoSourceDirectory: true
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: dcc82faedd2af1c5033cbfc1c59acd8a
CompileScript: <<
make %n
<<
InstallScript: <<
install -d -m 755 %i/bin
install -c -m 755 shlist %i/bin
install -c -m 755 shlist.sh %i/bin
chmod 644 README
<<
DocFiles: README
Homepage: http://www.braham.net/Phil/linux_utils.html
DescDetail: <<
shlist allows the use of lists from a shell. Lists take the form of a list
name and an index, which may be a name. Lists are kept in a directory
(~/.listRoot by default) with the indexes as filenames, and keep their
contents across reboots. Any number of separate list databases may be set up
at a time.
<<
DescUsage: <<
See README for details.

Usage:
shlist [-vrRslLF] [-n ] [-o |-c ] [|-]
shlist [-vrRslLF] [-n ] [-o |-c ] [-f] [|-]

-r - reset the index. (Deletes the entry).
-R - reset the list. (Deletes the directory supplied with -n or
LIST_NAME variable).
-s - supress the display of the current value.
-l - list the indexes
-L - list the indexes and their values
-F - when displaying, displays the name of the file containing the
value
-f - requires a filename. The file is copied as the index file.
-n - name of list. See note below for defaults.
-o - index into array. Default is 0.
-c - denotes that stdin is to be used and the number is the column
(or field) number to use for the index. Column 0 is the first
column.
-v - writes the version number to stderr.
<<
DescPackaging: <<
Patched shlist.sh use execute using /usr/sh, and removed the output to ofile,
which is unnecessary. Patched shlist.sh wrapper section of README to make it
clearer.
<<

shlist stable port .patch

diff -urN shlist-1.0/README shlist-1.0.new/README
--- shlist-1.0/README Tue May 13 11:47:56 2003
+++ shlist-1.0.new/README Sun Feb 13 19:04:15 2005
@@ -127,7 +127,7 @@

Example using ls:

- $ ls -l --color='no' / | tail -n+2 | shlist -s -n rootdir -c 7 -
+ $ ls -l --color='no' / | tail -n+2 | shlist.sh -s -n rootdir -c 7 -
$ shlist -n rootdir -l
bin "drwxr-xr-x 2 root root 2304 2003-04-16 21:11 bin"
dev "drwxr-xr-x 28 root root 94840 2003-05-10 22:48 dev"
@@ -152,7 +152,7 @@

Example using df:

- $ df | tail -n+2 | ./shlist -n df -c5 -s
+ $ df | tail -n+2 | ./shlist.sh -n df -c5 -s
$ shlist -n df -l
| "/dev/hda3 4457860 2999612 1458248 68% /"
|boot "/dev/hda5 15522 4624 10097 32% /boot"
diff -urN shlist-1.0/shlist.sh shlist-1.0.new/shlist.sh
--- shlist-1.0/shlist.sh Sun May 11 22:57:34 2003
+++ shlist-1.0.new/shlist.sh Sun Feb 13 19:04:37 2005
@@ -1,4 +1,4 @@
-#
+#!/bin/sh
# Wrapper for shlist to process stdoutput line by line.
# Paramters are passed to shlist as-is and the input line is
# appended.
@@ -10,5 +10,5 @@
then
exit
fi
- shlist $* "$inline" > ofile
+ shlist $* "$inline"
done

shlist _unstable_ port .patch