aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-02-23 06:19:03 +0800
committerkris <kris@FreeBSD.org>2003-02-23 06:19:03 +0800
commitd8a3d8d00c65247624fd47115141722284b110fc (patch)
tree38e19363d156c7bf5e7c6d0d46b5b30125369404 /Tools
parent3c4cdd92fa5771c47e20249e619f119140945b63 (diff)
downloadfreebsd-ports-gnome-d8a3d8d00c65247624fd47115141722284b110fc.tar.gz
freebsd-ports-gnome-d8a3d8d00c65247624fd47115141722284b110fc.tar.zst
freebsd-ports-gnome-d8a3d8d00c65247624fd47115141722284b110fc.zip
Store dates in +%s format
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildfailure6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/buildfailure b/Tools/portbuild/scripts/buildfailure
index cc9d944825cd..789b9d711997 100755
--- a/Tools/portbuild/scripts/buildfailure
+++ b/Tools/portbuild/scripts/buildfailure
@@ -30,17 +30,17 @@ if grep -q "^${portloc}|" failure; then
count=$(grep "^${portloc}|" failure | cut -f 5 -d \|)
grep -v "^${portloc}|" failure > failure.new
- echo "${portloc}|${pkgbase}|${pkgname}|$(date | tr ' ' '_')|$((${count}+1))" >> failure.new
+ echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s| tr ' ' '_')|$((${count}+1))" >> failure.new
mv failure.new failure
else
# Want newfailure to be in reverse chronological order
mv newfailure newfailure.new
- echo "${portloc}|${pkgbase}|${pkgname}|$(date | tr ' ' '_')" > newfailure
+ echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s| tr ' ' '_')" > newfailure
cat newfailure newfailure.new > newfailure.new2
mv newfailure.new2 newfailure
rm newfailure.new
- echo "${portloc}|${pkgbase}|${pkgname}|$(date)|1" >> failure
+ echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s)|1" >> failure
fi