X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=macros%2Finclude;h=5eb613aa4659ec96128a0a6da670fc71a17719ac;hb=6225daa33e80bc879f27229dc32d8d5cf01f020d;hp=97f35a4a2d27c84bdd171a7e089365e980971877;hpb=03faace5d5ef48267bfd0108edf65b29f285b2ac;p=shellwiki diff --git a/macros/include b/macros/include index 97f35a4..5eb613a 100755 --- a/macros/include +++ b/macros/include @@ -4,11 +4,7 @@ . "$_EXEC/acl.sh" . "$_EXEC/tools.sh" -from=1 -to=\$ -rev='' -items=\$ -path_info="$PATH_INFO" +from='1'; to='$'; rev=''; items='$' while [ $# -gt 0 ]; do case $1 in --from) from="$2"; shift 2;; @@ -38,26 +34,25 @@ page_glob "$page" \ | sort $rev \ | sed "${items}q" \ | while read glob; do - case $glob in - /*) export PATH_INFO="$(PATH "$glob")";; - *) export PATH_INFO="$(PATH "$path_info/$glob")";; - esac - acl_read || continue - if [ -f "$_DATA/pages/$PATH_INFO/#page.md" ]; then - mdfile="$_DATA/pages/$PATH_INFO/#page.md" - elif [ -f "$_EXEC/pages/$PATH_INFO/#page.md" ]; then - mdfile="$_EXEC/pages/$PATH_INFO/#page.md" - else - continue - fi - printf '