diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 15:56:56 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 15:56:56 -0400 |
| commit | 86af4e8487f27dd69863b1380fe17e841605214f (patch) | |
| tree | a6e23f1286ef0c01d2577cb03460fc76caa8d8f8 /snag/snagpkginfo.sh | |
| parent | 0ad03c0647b94683c26045bbc143b0d6450d914f (diff) | |
improvements and fixes
Diffstat (limited to 'snag/snagpkginfo.sh')
| -rwxr-xr-x | snag/snagpkginfo.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/snag/snagpkginfo.sh b/snag/snagpkginfo.sh deleted file mode 100755 index bb80418..0000000 --- a/snag/snagpkginfo.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -# reads a package description script and outputs the attributes in a format easy -# for the snag program to read. it does not do any other validation, and should -# not be used by other programs - -if [ -z "$1" ]; then - echo "Usage: $0 <description script>" >&2 - exit 1 -fi - -# load the description script -. $1 - -# output package attributes (type char, value, null delimiter) -echoatt() { [ -n "$2" ] && printf "$1$2\0"; } -echoatt i "$pkg_id" -echoatt n "$pkg_name" -echoatt d "$pkg_desc" |
