# HG changeset patch # User Titus von Boxberg # Date 1265153064 -3600 # Node ID 7051d758475a648b056ba384b5a5d5142dad35df # Parent 42c618ca576ee788e7181cf661c79f4294983685 scripts/functions: fix date munging when ns are not available On some systems (eg. *BSD and Darwin), date does not support nanoseconds (%N) precision. Instead of printing '%N' in this case, it just prints 'N'. Fix the sed expression to handle this case. diff -r 42c618ca576e -r 7051d758475a scripts/functions --- a/scripts/functions Wed Feb 03 00:24:24 2010 +0100 +++ b/scripts/functions Wed Feb 03 00:24:24 2010 +0100 @@ -192,7 +192,7 @@ # to the highest entire second # Usage: CT_DoDate CT_DoDate() { - date "$1" |sed -r -e 's/%N$/000000000/;' + date "$1" |sed -r -e 's/N$/000000000/;' } CT_STEP_COUNT=1