X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=autoslide.sh;fp=autoslide.sh;h=0000000000000000000000000000000000000000;hb=c2772fd3bec6c84a3bfdcd90b2008d9381c10876;hp=ead295b3dcf14a524345c2923369962cc041674a;hpb=33051920f2a111c3f6474843968a8e1ef80e68ab;p=clickslide diff --git a/autoslide.sh b/autoslide.sh deleted file mode 100755 index ead295b..0000000 --- a/autoslide.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh - -prev='' next='' idoff=0 - -"${0%/*}"/cgilite/html-sh.sed | { - line="$(line)" - while :; do - tag="${tag}${line%%>*}" - - if [ "$line" = "${line%%>*}" ]; then - # $line did not contain ">" and thus was added to $tag entirely - if ! line="$(line)"; then - printf %s\\n "$tag" - break - fi - tag="${tag} - " - else - # $line is shortened by segment added to $tag - line="${line#*>}" - tag="${tag}>" - fi - - case $tag in - *\*) - prev="$next" - next="${tag#*next
*|*\*) - prev="$next" - next="autoslide${idoff}" - idoff="$((idoff + 1))" - printf '%snext
*) - printf '%s
previous%s' \ - "${tag%*}" "$prev" "${tag#*}" - tag='' - ;; - *\<*class=\"uncover\"*\>*) - printf '%s' "$tag" - tag='' - ;; - *\*) - printf '%soverview' "$tag" - tag='' - ;; - *\*) - printf '%i%s' "$idoff" "$tag" - tag='' - ;; - *\<*\>*) - printf %s "$tag" - tag='' - ;; - *) : - ;; - esac - done -}