Browse Source

Added package_hive_desc() adn package_hive_aliases() to ./lib/sde-package/hives.in

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
95b266a70d
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      lib/sde-package/hives.in

+ 11
- 0
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/ *$//'
}

Loading…
Cancel
Save