added search for keyword functionnality

This commit is contained in:
Fabien Benetou
2011-07-20 13:41:40 +02:00
parent 88e415b0df
commit 9f65cf55c6

View File

@@ -7,6 +7,7 @@
# or manually pmwiki_recipes_info_listing | xclip
#
# TODO
# provide search links on keywords
# clean trailing comments
# s/#.*$// or s/\/\/.*$//
# add a hook (locally and/or remotely) to generate this after each commit
@@ -34,7 +35,7 @@ do
echo "[[#$SCRIPT]][[$REPOSITORYURL/$SCRIPT|$SCRIPT]]";
grep RecipeInfo $SCRIPT | sed "s/.*= '\(.*\)';.*/* version (or date) \1/" ;
grep HandleAction $SCRIPT | sed "s/.*], '\(.*\)');.*/* action [[Path:.?action=\1]]/" ;
grep ^Markup $SCRIPT | sed "s/.*:\(.*\):.*/* markup [@(:\1:)@]/" ;
grep ^Markup $SCRIPT | sed "s/.*:\(.*\):.*/* markup [[Path:?action=search\&q=(%3A\1%3A)|[@(:\1:)@]]]/" ;
echo "* functions";
for FUNCTION in `grep ^function $SCRIPT | sed "s/^function \(.*\)(.*/\1/"`
do