X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Ftarman;h=10928a356349b8230fa22b6b59a8c6e2d87fe3fc;hb=5704aeb8a496b8562f4e9c37b064758913311a7e;hp=3ef257dc5a915c657d2eb739e8a88e6c50eebc5b;hpb=e4faf46844fa3162def723f12a09791e350caabb;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 ) {