diff options
author | dmcmahill <dmcmahill> | 2005-01-09 15:33:09 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2005-01-09 15:33:09 +0000 |
commit | d6e0e012971489cf41e3396b7b1502ee22a62ee7 (patch) | |
tree | eb86117cda2efce50529ac57b1fd2ad83260a11f /pkgtools | |
parent | e98ff1f38a8ddf79477ff5ad8b2c3b22d737f5b1 (diff) | |
download | pkgsrc-d6e0e012971489cf41e3396b7b1502ee22a62ee7.tar.gz |
use "date" | getline now instead of the gawk strftime() extension. Improves
portability. Patch provided by Greg Woods in PR pkg/28899.
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/cdpack/files/cdgen.awk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/cdpack/files/cdgen.awk b/pkgtools/cdpack/files/cdgen.awk index 75ea3e4ee72..4e1adac828a 100755 --- a/pkgtools/cdpack/files/cdgen.awk +++ b/pkgtools/cdpack/files/cdgen.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: cdgen.awk,v 1.4 2003/02/05 15:01:57 dmcmahill Exp $ +# $NetBSD: cdgen.awk,v 1.5 2005/01/09 15:33:09 dmcmahill Exp $ # # Copyright (c) 2001, 2002, 2003 Dan McMahill, All rights reserved. # @@ -116,7 +116,7 @@ BEGIN { } - now = strftime("%a %b %d %H:%M:%S %Z %Y"); + "date" | getline now; printf("%s starting %28s\n",prog,now); # @@ -406,7 +406,7 @@ BEGIN { close(cdlist); - now = strftime("%a %b %d %H:%M:%S %Z %Y"); + "date" | getline now; printf("%s finished on %28s\n",prog,now); printf("\n"); |