Add a function to generate range title lists.
authorAdam Sampson <ats@offog.org>
Thu, 11 Jul 2013 14:14:07 +0000 (14:14 +0000)
committerAdam Sampson <ats@offog.org>
Thu, 11 Jul 2013 14:14:07 +0000 (14:14 +0000)
test-rawdog

index 972bd4acd60406fe50d1e8dc4979f21d955de608..2212bfe992edf8d3080bad6a66ba7ba9c26fcef0 100644 (file)
@@ -338,12 +338,16 @@ make_n () {
        make_range 1 "$@"
 }
 
+range () {
+       seq -f "range-title-%.f-" $1 $2
+}
+
 output_range () {
-       contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2)
+       contains $statedir/output.html $(range $1 $2)
 }
 
 not_output_range () {
-       not_contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2)
+       not_contains $statedir/output.html $(range $1 $2)
 }
 
 output_n () {