From c895a947d1cf1360062f37b5a00d4d8ce45f87e4 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 9 Mar 2013 18:46:51 -0800 Subject: [PATCH] Two release times per day. --- build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build b/build index 83693c3..6f3fae7 100755 --- a/build +++ b/build @@ -3,7 +3,7 @@ # build cgdb script # Copyright (C) 2011,2012,2013 Kyle J. McKay. All rights reserved. -# Version 1.1.2 +# Version 1.1.3 set -e PATH="`getconf PATH`" @@ -201,8 +201,8 @@ find "$mydir/installer/usrlocal" ! -type d -print0 | xargs -0 chmod 444 chmod 555 "$mydir/installer/usrlocal/bin/cgdb" find "$mydir/installer/usrlocal" -type d -print0 | xargs -0 chmod 755 timenow="`date +%s`" -stamp="`perl -e '@x=localtime(86400*int($ARGV[0]/86400));printf("%04d%02d%02d%02d%02d.%02d",$x[5]+1900,$x[4]+1,$x[3],$x[2],$x[1],$x[0])' "$timenow"`" -stampsf="`perl -e '@x=localtime(86400*int($ARGV[0]/86400));printf("%02d/%02d/%04d %02d:%02d:%02d",$x[4]+1,$x[3],$x[5]+1900,$x[2],$x[1],$x[0])' "$timenow"`" +stamp="`perl -e '@x=localtime(43200*int($ARGV[0]/43200));printf("%04d%02d%02d%02d%02d.%02d",$x[5]+1900,$x[4]+1,$x[3],$x[2],$x[1],$x[0])' "$timenow"`" +stampsf="`perl -e '@x=localtime(43200*int($ARGV[0]/43200));printf("%02d/%02d/%04d %02d:%02d:%02d",$x[4]+1,$x[3],$x[5]+1900,$x[2],$x[1],$x[0])' "$timenow"`" find "$mydir/installer/usrlocal" -print0 | xargs -0n1 "$sf" -d "$stampsf" find "$mydir/installer/usrlocal" -print0 | xargs -0 touch -t "$stamp" echo "" -- 2.11.4.GIT