projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0db33f
)
Porting/makerel: handle more sha1 variants,
author
David Mitchell
<davem@iabyn.com>
Thu, 6 Aug 2009 00:52:44 +0000
(
01:52
+0100)
committer
David Mitchell
<davem@iabyn.com>
Thu, 6 Aug 2009 00:52:44 +0000
(
01:52
+0100)
and be quieter on failure
Porting/makerel
patch
|
blob
|
history
diff --git
a/Porting/makerel
b/Porting/makerel
index
b23e1c7
..
2159579
100644
(file)
--- a/
Porting/makerel
+++ b/
Porting/makerel
@@
-208,10
+208,12
@@
if ($opts{b}) {
print "\n";
-if (`which sha1`) {
- system("sha1 $perl*.tar.*");
-} elsif (`which shasum`) {
- system("shasum $perl*.tar.*");
-} else {
- system("ls -ld $perl*");
+system("ls -ld $perl*");
+print "\n";
+
+for my $sha (qw(sha1 shasum sha1sum)) {
+ if (`which $sha 2>/dev/null`) {
+ system("$sha $perl*.tar.*");
+ last;
+ }
}