chiark / gitweb /
commitid.scad.pl: do skipping of skipped things in 2d demo by incrementing j, not...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:25:37 +0000 (18:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:25:37 +0000 (18:25 +0000)
commitid.scad.pl

index ae1ebb4..5a61f41 100755 (executable)
@@ -275,6 +275,8 @@ sub gentextmodule_plusq ($$) {
     gentextmodule($form, $s);
     if (!($l & 1) && $l>=4) {
        gentextmodule("${form}S", substr($s,0,$l/2), substr($s,$l/2));
+    } else {
+       $gtm_demo_j++;
     }
 }
 
@@ -332,18 +334,14 @@ sub do_git () {
     }
 
     foreach my $sz (3..10) {
-       gentextmodule_demo_start_batch($sz-3, 0);
+       gentextmodule_demo_start_batch($sz-3);
 
        gentextmodule_plusq("Small$sz", rjustt($sz, $git_count.$git_dirty))
            if defined $git_count;
 
-       gentextmodule_demo_start_batch($sz-3, 2);
-
        gentextmodule_plusq("Git$sz", ljustt($sz, $git_object, $git_dirty))
            if defined $git_object;
 
-       gentextmodule_demo_start_batch($sz-3, 4);
-
        gentextmodule("Full$sz",
                      rjustt($sz, $git_count.$git_dirty),
                      ljustt($sz, $git_object, ''))