add scripts/portable_date: wrapper around date for bsd/linux
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:28:55 +0000 (23:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:28:55 +0000 (23:28 +0000)
commit28530115b69ec49dd77d55b0daddd42640f4ceb2
tree10eb56d2591d0b987fb75336b18c29c249eed257
parente4aef976329f3ed5646b4cb71b8e477a9f888ec8
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>
SVN-Revision: 48583
scripts/portable_date.sh [new file with mode: 0755]