diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 12:08:18 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-20 12:08:18 -0400 |
| commit | 3ae746e5ac3f8feb80a8619127956fb93ba47ca0 (patch) | |
| tree | f0c4ffd7fac34f52b644783eacf6b146add767bd /snag/getpkginfo.sh | |
| parent | 9bb3496a80734daffb00c37ee165487cb0fb8f6e (diff) | |
start snag program and defining package format
Diffstat (limited to 'snag/getpkginfo.sh')
| -rwxr-xr-x | snag/getpkginfo.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/snag/getpkginfo.sh b/snag/getpkginfo.sh new file mode 100755 index 0000000..0650740 --- /dev/null +++ b/snag/getpkginfo.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# reads a package description script and outputs the attributes in a format easy +# for the snag program to read + +if [ -z "$1" ]; then + echo "Usage: $0 <description script>" >&2 + exit 1 +fi + +# load the description script +. $1 + +# echo package properties +echo ID $pkg_id +echo NAME $pkg_name +echo DESC $pkg_desc |
