summaryrefslogtreecommitdiffstats
path: root/doc/kdevelop/listplugins.sh
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch)
treeacaf47eb0fa12142d3896416a69e74cbf5a72242 /doc/kdevelop/listplugins.sh
downloadtdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz
tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc/kdevelop/listplugins.sh')
-rwxr-xr-xdoc/kdevelop/listplugins.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/kdevelop/listplugins.sh b/doc/kdevelop/listplugins.sh
new file mode 100755
index 00000000..e21b3a15
--- /dev/null
+++ b/doc/kdevelop/listplugins.sh
@@ -0,0 +1,43 @@
+
+# kdevdir must be set to the KDevelop project directory.
+kdevdir=/home/volker/data/prj/kdevelop/kdevelop/
+# The plugins are in the parts/ subdirectory.
+
+pushd $kdevdir/parts >/dev/null
+oldscope=nix
+echo "<para>The following plugin list is generated by a small script"
+echo "written by Volker Paul. All plugins have a .desktop file"
+echo "where information such as name and comments are written."
+echo "If in the following these comments are not very useful,"
+echo "it is because the plugin authors made them this way.</para>"
+echo "<para>The plugins are grouped by scope (Core, Global, Project).</para>"
+
+for defscope in Core Global Project; do
+ if [ $defscope != $oldscope ]; then
+ oldscope=$defscope
+ echo
+# echo "<sect1><title>Scope: $defscope</title>"
+ echo "<para>Scope: $defscope</para>"
+ echo "<itemizedlist>"
+ fi
+ for dir in `ls`; do
+ if [ ! -d $dir ]; then continue; fi
+ dfile=$dir/*.desktop
+ # echo $dfile | wc -w
+ if [ `echo $dfile | wc -w` -gt 1 ]; then continue; fi
+ if [ ! -f $dfile ]; then continue; fi
+ scope=`cat $dfile | grep "X-KDevelop-Scope=" | cut -d= -f2-`
+ if [ $scope != $defscope ]; then continue; fi
+ comment=`cat $dfile | grep "Comment=" | cut -d= -f2-`
+ name=`cat $dfile | egrep "^Name=" | cut -d= -f2- | tr " " _`
+ genericname=`cat $dfile | grep "GenericName=" | cut -d= -f2-`
+ echo "<listitem><formalpara id=\"$name\">"
+ echo "<title>$genericname</title>"
+ echo "<para>$comment</para></formalpara></listitem>"
+ done
+ echo "</itemizedlist>"
+# echo "</sect1>"
+done
+popd >/dev/null
+echo "<para>So far the generated plugin list.</para>"
+echo