X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=macros%2Frevisions;fp=macros%2Frevisions;h=c6fb8fa2cb59b7d239b81f372515a5ed96ed3a55;hb=a6ae272ce0af6b93cabddf4aa4a3cebc7350f5a0;hp=0000000000000000000000000000000000000000;hpb=190657ed71861114213d0bd8128bd157a69f17ff;p=shellwiki diff --git a/macros/revisions b/macros/revisions new file mode 100755 index 0000000..c6fb8fa --- /dev/null +++ b/macros/revisions @@ -0,0 +1,26 @@ +#!/bin/sh + +. "$_EXEC/cgilite/cgilite.sh" +. "$_EXEC/tools.sh" +. "$_EXEC/acl.sh" + +page="$1" +page_abs="$(page_abs "$page")" + +if ! acl_read "$page_abs"; then + return 0 +elif [ ! "$(which git)" ]; then + printf '
GIT is not available to handle revisioning.
' +fi + +printf ''