source: trunk/dports/ruby/rb-pdumpfs/files/patch-pdumpfs-test @ 21497

Last change on this file since 21497 was 21497, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 500 bytes
Line 
1--- tests/pdumpfs-test.orig     Mon Jul 12 14:13:44 2004
2+++ tests/pdumpfs-test  Mon Jul 12 14:20:28 2004
3@@ -13,7 +13,13 @@
4 cd ..
5 
6 today=`date +%Y/%m/%d`
7-yesterday=`date --date '1 day ago' +%Y/%m/%d`
8+if date --date '1 day ago' +%Y/%m/%d >/dev/null 2>&1; then
9+       yesterday=`date --date '1 day ago' +%Y/%m/%d`
10+else
11+       todaysec=`date +%s`
12+       yesterdaysec=`expr $todaysec - 86400`
13+       yesterday=`date -r $yesterdaysec  +%Y/%m/%d`
14+fi
15 
16 ../pdumpfs src dest  || exit 1
17 diff -r src dest/$today/src || exit 1
Note: See TracBrowser for help on using the repository browser.