X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Ftarman;h=10928a356349b8230fa22b6b59a8c6e2d87fe3fc;hb=b3681a6f6f34fc752ffd7a59d04e13715d8ca099;hp=3ef257dc5a915c657d2eb739e8a88e6c50eebc5b;hpb=4a9bda2af00e83f7eb4f66606b69f38c78a8e65c;p=debian%2Ftar diff --git a/debian/tarman b/debian/tarman index 3ef257dc..10928a35 100644 --- a/debian/tarman +++ b/debian/tarman @@ -4,9 +4,10 @@ # use strict; +use POSIX qw(strftime); -my $t = "".localtime(time); -my $datestr = substr($t,4,3)." ".substr($t,8,2).", ".substr($t,20,4); +my $t = $ENV{'BUILD_DATE'} // strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time)); +my $datestr = substr($t,8,3)." ".substr($t,5,2).", ".substr($t,12,4); @ARGV=qw(src/tar.c); my $mode; @@ -94,6 +95,15 @@ while (<>) { $$lastoperation{'description'} .= $c3[1]; } } + if (!$nflag && !/\}/) { + while (<>) { + my @extended_desc = split('"', $_); + $$lastoperation{'description'} .= $extended_desc[1]; + if (/\}/) { + last; + } + } + } } } if ($mode == 3 ) {