chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9755520
)
commitid.scad.pl: Provide Full*T
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:51:10 +0000
(18:51 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:51:10 +0000
(18:51 +0000)
commitid.scad.pl
patch
|
blob
|
history
diff --git
a/commitid.scad.pl
b/commitid.scad.pl
index 2da787311e2f9d9b6d8d9996a6e29b9469ca999b..48585d5fd11909e402306a99ede5870aa166545c 100755
(executable)
--- a/
commitid.scad.pl
+++ b/
commitid.scad.pl
@@
-104,6
+104,12
@@
$SIG{__WARN__} = sub { die @_; };
# If tree is dirty, + or * is suffixed to count (but not to
# commitid) reducing number of digits by 1.
#
# If tree is dirty, + or * is suffixed to count (but not to
# commitid) reducing number of digits by 1.
#
+# Full6T
+# Full9T
+# Full12T
+# Full15T
+# As Full but commit is split over two lines for a 3-line message
+#
# FontDemo
#
# Arg0, Arg1, ...
# FontDemo
#
# Arg0, Arg1, ...
@@
-355,6
+361,14
@@
sub do_git () {
gentextmodule("Full$sz",
rjustt($sz, $git_count.$git_dirty),
ljustt($sz, $git_object, ''));
gentextmodule("Full$sz",
rjustt($sz, $git_count.$git_dirty),
ljustt($sz, $git_object, ''));
+
+ if (!($sz % 2)) {
+ my $e = $sz/2;
+ gentextmodule("Full".($e*3)."T",
+ rjustt($e, $git_count),
+ ljustt($e*2, $git_object, $git_dirty)
+ =~ m/.{$e}/g);
+ }
}
}
}
}
}
}