From: Michael Tremer Date: Wed, 18 Feb 2009 22:16:54 +0000 (+0100) Subject: Added target to make a wiki friendly group list. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cabb88ab9b6d10a938b67e0eb41de334946100a;p=ipfire-3.x.git Added target to make a wiki friendly group list. --- diff --git a/tools/make-interactive b/tools/make-interactive index d4536ec51..21ec89579 100644 --- a/tools/make-interactive +++ b/tools/make-interactive @@ -331,6 +331,9 @@ package*|pkg) raw) pkg_info $3 ;; + wikigroup*) + pkg_list_groups_wiki + ;; wikiinfo) shift 2 pkg_info_wiki $@ diff --git a/tools/make-packages b/tools/make-packages index c304f7241..3e40e15e8 100644 --- a/tools/make-packages +++ b/tools/make-packages @@ -26,6 +26,21 @@ pkg_list_groups() { grep ^GROUP $BASEDIR/lfs/* | awk '{ print $3 }' | sort | uniq } +pkg_list_groups_wiki() { + for group in $(pkg_list_groups); do + echo "$group" + for package in $BASEDIR/lfs/*; do + ( unset NAME VERSION + eval $(pkg_info ${package}) + if [ -n "$NAME" ] && [ "$RELEASE" != "-1" ] && [ "$GROUP" = "$group" ]; then + [ -n "$VERSION" ] && NAME="${NAME}-${VERSION}" + echo " * [[.:package:$package|${NAME}]] - ${SHORT}" + fi + ) + done + done +} + pkg_list_packages() { echo "#### List of softwares used to build $NAME Version: $VERSION ####" local package