diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-01-09 15:33:09 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-01-09 15:33:09 +0000 |
commit | 837182ef6dff542efbffe2f0933e4b6ecdbbad09 (patch) | |
tree | eb86117cda2efce50529ac57b1fd2ad83260a11f /pkgtools/cdpack/files/cdgen.awk | |
parent | b9a57b0219fc3bee15ace50117a0cda1a383a5d7 (diff) | |
download | pkgsrc-837182ef6dff542efbffe2f0933e4b6ecdbbad09.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/cdpack/files/cdgen.awk')
-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"); |