From 95b266a70dc3b0175f59d35208528293acf60069 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 14 Feb 2008 00:27:07 +0000 Subject: [PATCH] Added package_hive_desc() adn package_hive_aliases() to ./lib/sde-package/hives.in --- lib/sde-package/hives.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/sde-package/hives.in b/lib/sde-package/hives.in index f1573ed..5052773 100644 --- a/lib/sde-package/hives.in +++ b/lib/sde-package/hives.in @@ -39,3 +39,14 @@ package_hive_alias() done fi } + +package_hive_desc() +{ + sed -n -e 's,^#Description: \(.*\)$,\1,p' "$SDEROOT/lib/sde-package/hives/$1" | head -n 1 +} + +package_hive_aliases() +{ + sed -n -e 's,^#Alias: \([^ ]*\)$,\1,p' "$SDEROOT/lib/sde-package/hives/$1" | tr '\n' ' ' | + sed -e 's/^ *//' -e 's/ *$//' +} -- 2.11.4.GIT