From 5365f8fa8d6ebfbf3ba92816abe55a99feff6f25 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 22 Jul 2026 09:09:18 -0400 Subject: clean up --- snag/get_pkg_attrs.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 snag/get_pkg_attrs.sh (limited to 'snag/get_pkg_attrs.sh') diff --git a/snag/get_pkg_attrs.sh b/snag/get_pkg_attrs.sh deleted file mode 100755 index 25f9177..0000000 --- a/snag/get_pkg_attrs.sh +++ /dev/null @@ -1,22 +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 " >&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" -echoatt w "$pkg_webpage" -echoatt l "$pkg_license" -echoatt v "$pkg_version" -- cgit v1.2.3