pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/cdpack/files use "date" | getline now instead...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e409d6ccd31
branches: trunk
changeset: 487126:3e409d6ccd31
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Sun Jan 09 15:33:09 2005 +0000
description:
use "date" | getline now instead of the gawk strftime() extension. Improves
portability. Patch provided by Greg Woods in PR pkg/28899.
diffstat:
pkgtools/cdpack/files/cdgen.awk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 447d6317f22b -r 3e409d6ccd31 pkgtools/cdpack/files/cdgen.awk
--- a/pkgtools/cdpack/files/cdgen.awk Sun Jan 09 13:36:32 2005 +0000
+++ b/pkgtools/cdpack/files/cdgen.awk Sun Jan 09 15:33:09 2005 +0000
@@ -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 @@
}
- now = strftime("%a %b %d %H:%M:%S %Z %Y");
+ "date" | getline now;
printf("%s starting %28s\n",prog,now);
#
@@ -406,7 +406,7 @@
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");
Home |
Main Index |
Thread Index |
Old Index