add scripts/portable_date: wrapper around date for bsd/linux
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 Jan 2016 23:28:55 +0000 (23:28 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 Jan 2016 23:28:55 +0000 (23:28 +0000)
commit5df6ea611e100f8aa7c8f42724af2c28bc251a39
tree10eb56d2591d0b987fb75336b18c29c249eed257
parent83f239145a39e8a70d443ec12696ebb4c6324856
add scripts/portable_date: wrapper around date for bsd/linux

date -r $unix_timestamp on bsd is equal to date -d @$unix_timestamp on
linux. To support reproducible builds and not loosing every timestamp
it's required to convert a unix timestamp into human readable timestamp

./scripts/portable_date $unix_timstamp +%T

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48583 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/portable_date.sh [new file with mode: 0755]