X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=macros%2Frevisions;h=5d7b5893596c8a9b09edf66e81db0a8c332a6aa3;hb=65676ea8331f60d882e3baec99c101382e9fad57;hp=4271149cffbd8074d89f16d88418b26f5f842441;hpb=c557bbf8988e8e77e5691926fbcccc387cc4ce24;p=shellwiki diff --git a/macros/revisions b/macros/revisions index 4271149..5d7b589 100755 --- a/macros/revisions +++ b/macros/revisions @@ -4,16 +4,48 @@ . "$_EXEC/tools.sh" . "$_EXEC/acl.sh" -page="$1" +_(){ printf %s\\n "$*"; } +[ "${LANGUAGE}" -a -r "${_EXEC}/l10n/${LANGUAGE}.sh" ] && . "${_EXEC}/l10n/${LANGUAGE}.sh" + +LIST=true DIFF= +while [ $# -gt 0 ]; do case $1 in + --list) + LIST=true + shift 1 + ;; + --no-list) + LIST= + shift 1 + ;; + --diff) + DIFF=true + shift 1 + ;; + --no-diff) + DIFF= + shift 1 + ;; + *)page="$1" + shift 1 + ;; +esac; done + page_abs="$(page_abs "$page")" +page_default="${page_abs%:*/}" if ! acl_read "$page_abs"; then return 0 -elif [ "$REV_PAGES" != true ]; then - printf '
GIT is not available to handle revisioning.
' fi -printf '