aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-01-31 09:01:33 -0800
committerMark Ferrell <major@homeonderanged.org>2014-01-31 09:01:33 -0800
commit5fdf6a953888e211fbb5a328cc2060130b007e85 (patch)
tree132591e769b7254898fc44aa4976616edfd0bb55
parentaac98d93df04bb9f1d3ebe70aaf9504ee4d7f50f (diff)
Add support for package License information
-rwxr-xr-xbuilder/build-query8
1 files changed, 7 insertions, 1 deletions
diff --git a/builder/build-query b/builder/build-query
index 3e74098..f7a59c3 100755
--- a/builder/build-query
+++ b/builder/build-query
@@ -96,6 +96,8 @@ while [ "$#" -gt "0" ]; do
QUERY_ACTION="filesdir";;
(-l|-logdir|--logdir)
QUERY_ACTION="logdir";;
+ (-L|-license|--license)
+ QUERY_ACTION="license";;
(-n|-name|--name)
QUERY_ACTION="name";;
(-N|-pkgname|--pkgname)
@@ -234,6 +236,7 @@ esac
VERSION=
RELEASE=
DESCRIPTION=
+LICENSE=
SOURCE_URI=
PATCHES=
RDEPENDS=
@@ -258,7 +261,7 @@ if test -z "${RELEASE}"; then
fi
fi
-export VERSION RELEASE DESCRIPTION SOURCE_URI PATCHES BDEPENDS RDEPENDS
+export VERSION RELEASE DESCRIPTION LICENSE SOURCE_URI PATCHES BDEPENDS RDEPENDS
# Ironically, the source working directory can't be assigned until we source in
# the Buildrules due to the dependancy on the VERSION
@@ -275,6 +278,7 @@ case "${QUERY_ACTION}" in
(version) echo "${VERSION}";;
(release) echo "${RELEASE}";;
(patches) echo "${PATCHES}";;
+(license) echo "${LICENSE}";;
# Allow the caller to specify the variable to report.
# FIXME may need to protect our existing environ from being poked.
@@ -301,6 +305,7 @@ case "${QUERY_ACTION}" in
VERSION="${VERSION}"
RELEASE="${RELEASE}"
DESCRIPTION="${DESCRIPTION}"
+ LICENSE="${LICENSE}"
SOURCE_URI="${SOURCE_URI}"
EOF
@@ -340,6 +345,7 @@ case "${QUERY_ACTION}" in
echo "Name: ${CATEGORY}/${NAME}"
echo "Version: ${VERSION}"
echo "Release: ${RELEASE}"
+ echo "License: ${LICENSE}"
echo "Source: ${SOURCE_URI}"
if [ ! -z "${RDEPENDS}" ]; then
echo "Depends: ${RDEPENDS}"