1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Store dates in +%s format

This commit is contained in:
Kris Kennaway 2003-02-22 22:19:03 +00:00
parent 0aa749d4da
commit 6f6a583bc7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76202

View File

@ -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