]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added target to make a wiki friendly group list.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2009 22:16:54 +0000 (23:16 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2009 22:16:54 +0000 (23:16 +0100)
tools/make-interactive
tools/make-packages

index d4536ec51a7cde73e9e1d1f816ef88b3a53e03d7..21ec89579ccb44afbb87cec0c1fb523f333ef9a3 100644 (file)
@@ -331,6 +331,9 @@ package*|pkg)
                raw)
                        pkg_info $3
                        ;;
+               wikigroup*)
+                       pkg_list_groups_wiki
+                       ;;
                wikiinfo)
                        shift 2
                        pkg_info_wiki $@
index c304f7241d11dec376fd606a65d2cc3a500bc466..3e40e15e8454d686a3ecddb322899d9426dee22e 100644 (file)
@@ -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