3 # Find short descriptions from .desktop files
5 # Author: Bartosz Świątek (shadzik@pld-linux.org)
7 if [ "x$1" == "x" ]; then
8 echo "Usage: $0 kdemodule-version"
18 echo "Group: X11/Applications"
20 echo "%description $1"
21 echo "$*." |sed -e "s@^$1 @@"
25 DESKTOPS=$(find $BUILDDIR/$KDEMOD -name \*.desktop |sed -e "s@$BUILDDIR/$KDEMOD@@;s@/@ @g;s/^ //" |awk '{if ($1".desktop" == $2) print $1"/"$2}')
27 for DESKTOP in $DESKTOPS; do
28 NAME=$(echo $DESKTOP |sed 's@/@ @' |awk '{print $1}')
29 DESC=$(grep -E "(Comment=|GenericName=)" $BUILDDIR/$KDEMOD/$DESKTOP |sed "s/Comment=//;s/GenericName=//")