Consistenly using 'head -n' and 'tail -n' to be BSD compatible.
commit1b23e97db1343d9dc3c3d66996d46f1731afdb58
authorTrygve Laugstøl <trygvis@inamo.no>
Sun, 10 Jul 2011 19:27:19 +0000 (10 15:27 -0400)
committerJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Sun, 10 Jul 2011 19:27:19 +0000 (10 15:27 -0400)
tree15b17ae8646b3c4c6593a5b89ff6b185b2f9919d
parent9f356a29f95ce7595a1333a6d5bd85a980b8becf
Consistenly using 'head -n' and 'tail -n' to be BSD compatible.

Replaced 'head -n -X' with wc+expr as BSD head doesn't support negative arguments.
On Darwin skip running head if N is 0 as it fails with N=0 (!).
Implementing a Darwin compatible sha1 function that relies on openssl.

Signed-off-by: Trygve Laugstøl <trygvis@inamo.no>
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
guilt
guilt-branch
guilt-files
guilt-graph
guilt-push
guilt-rebase
guilt-repair
guilt-series