chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
get-sig: Improve shell use a bit. Take base directories relative to $HOME.
[bin.git]
/
build-sig
1
#! /bin/sh
2
3
for s in $(find ~/.signatures -mindepth 1 -path '*/old/*' -prune -o \
4
-path '*/.svn/*' -prune -o \
5
-type f ! -name '*.dat' ! -name static -print | \
6
sort); do
7
strfile "$s"
8
done | perl -pe \
9
'$s += $1 if /There.*?([0-9]+)/; END { print "Total: $s\n"; }'