chmod o+w $@
cd $@ && ln -sf ../../install.d/wiki/wiki.d/* .
+wiki/cookbook/e-protect.php:
+ cd wiki/cookbook && ln -sf ../../install.d/wiki/e-protect.php
htdocs/valid.html:
touch spool/templates_c/valid.html
+ chmod o+w spool/templates_c/valid.html
cd htdocs && ln -sf ../spool/templates_c/valid.html
htdocs/uploads:
cd htdocs && ln -sf ../spool/uploads
-htdocs/wikipub:
- cd htdocs && ln -sf ../wiki/pub wikipub
+htdocs/wiki:
+ cd htdocs && ln -sf ../wiki/pub wiki
wiki/local/farmconfig.php:
cd wiki/local/ && ln -sf ../../plugins/pmwiki.config.php farmconfig.php
fi
build-wiki: wiki/local/farmconfig.php wiki/pub/skins/empty spool/wiki.d
+ @sed -e 's/^exit;/\/\/exit;/g' wiki/pmwiki.php > wiki/pmwiki.php.new
+ @mv wiki/pmwiki.php.new wiki/pmwiki.php
-wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wikipub
+wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki wiki/cookbook/e-protect.php
################################################################################