|
|
@ -10,13 +10,16 @@ |
|
|
|
# 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 |
|
|
|
|
|
|
|
# directly generate and overwrite a PmWiki file in the right location rather than rely on import |
|
|
|
|
|
|
|
# echo -e -n 'version=urlencoded=1\ntext=' > ~/www/devpim/wiki.d/Recipes.RecipesTest && ../shell_scripts/pmwiki_recipes_info_listing | sed "s/%/%25/g" | sed -e '{:q;N;s/\n/%0a/g;t q}' >> ~/www/devpim/wiki.d/Recipes.RecipesTest |
|
|
|
|
|
|
|
|
|
|
|
WIKIPAGENAME=Recipes |
|
|
|
WIKIPAGENAME=Recipes |
|
|
|
RECIPESPATH=/home/fabien/repository/pmwiki_recipes |
|
|
|
RECIPESPATH=/home/fabien/repository/pmwiki_recipes |
|
|
|
REPOSITORYURL="http://fabien.benetou.fr/repository/?p=.git;a=blob;f=pmwiki_recipes" |
|
|
|
REPOSITORYURL="http://fabien.benetou.fr/repository/?p=.git;a=blob;f=pmwiki_recipes" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd $RECIPESPATH |
|
|
|
echo "[[#RecipeMenuStart]]"; |
|
|
|
echo "[[#RecipeMenuStart]]"; |
|
|
|
for SCRIPT in `ls $RECIPESPATH`; |
|
|
|
for SCRIPT in `ls`; |
|
|
|
do |
|
|
|
do |
|
|
|
SCT=`echo $SCRIPT|sed "s/\.php//"` |
|
|
|
SCT=`echo $SCRIPT|sed "s/\.php//"` |
|
|
|
echo "* [[$WIKIPAGENAME#$SCRIPT|$SCT]]"; |
|
|
|
echo "* [[$WIKIPAGENAME#$SCRIPT|$SCT]]"; |
|
|
@ -24,7 +27,7 @@ done |
|
|
|
echo "[[#RecipeMenuEnd]]"; |
|
|
|
echo "[[#RecipeMenuEnd]]"; |
|
|
|
echo "%comment%facilitate include in other pages%%"; |
|
|
|
echo "%comment%facilitate include in other pages%%"; |
|
|
|
echo -e "\n----\n" |
|
|
|
echo -e "\n----\n" |
|
|
|
for SCRIPT in `ls $RECIPESPATH`; |
|
|
|
for SCRIPT in `ls`; |
|
|
|
do |
|
|
|
do |
|
|
|
echo -n '!'; |
|
|
|
echo -n '!'; |
|
|
|
echo "[[#$SCRIPT]][[$REPOSITORYURL/$SCRIPT|$SCRIPT]]"; |
|
|
|
echo "[[#$SCRIPT]][[$REPOSITORYURL/$SCRIPT|$SCRIPT]]"; |
|
|
|