7 cd $
(dirname $0)/..
/public
11 if test ${path:0:1} != "/"
13 REFPATH
="$OWD/$path$REFPATH"
15 REFPATH
="$path$REFPATH"
20 if test $# -gt 0; then
24 while test $# -gt 0; do
32 printf "Usage:\n\t%s [refpath] ...\n\n" "$(basename $0)"
33 printf "Parameters:\n"
34 printf "\trefpath path to a markdown reference tree or a colon separated\n"
35 printf "\t list of those (optional, multiple)\n\n"
36 printf "Environment:\n"
37 printf "\tREFPATH colon separated list of refpaths\n\n"
38 printf "At least one refpath must be given, either through the environment "
39 printf "with REFPATH or as command line argument.\n\n"
45 for p
in {8000.
.8100}; do
46 php
-S localhost
:$p -t . index.php
&& break