X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=autoslide.sh;fp=autoslide.sh;h=ead295b3dcf14a524345c2923369962cc041674a;hb=0c1ce131e7e7c857a25d5281d8715f5cf0c056b5;hp=8c9ca1ef640ed42d0d72624a9c9e682b666e06f9;hpb=0fc47a1856fe8e4868149f654157d86d6c3794e8;p=clickslide diff --git a/autoslide.sh b/autoslide.sh index 8c9ca1e..ead295b 100755 --- a/autoslide.sh +++ b/autoslide.sh @@ -1,6 +1,6 @@ #!/bin/sh -prev='' next='' idoff=1 +prev='' next='' idoff=0 "${0%/*}"/cgilite/html-sh.sed | { line="$(line)" @@ -24,19 +24,19 @@ prev='' next='' idoff=1 case $tag in *\*) prev="$next" - next="${tag#*next
next
*|*\*) prev="$next" next="autoslide${idoff}" idoff="$((idoff + 1))" - printf '%snext
next
*) @@ -52,6 +52,10 @@ prev='' next='' idoff=1 printf '%soverview' "$tag" tag='' ;; + *\*) + printf '%i%s' "$idoff" "$tag" + tag='' + ;; *\<*\>*) printf %s "$tag" tag=''