added search for keyword functionnality

master
Fabien Benetou 13 years ago
parent 88e415b0df
commit 9f65cf55c6
  1. 3
      shell_scripts/pmwiki_recipes_info_listing

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

Loading…
Cancel
Save