Merged in david_alessio/nuttx/bugfix/gitrev-portability (pull request #1035)

fix portability issue with date, hostname

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
David Alessio 2019-09-20 16:46:04 +00:00 committed by Gregory Nutt
parent 23e1d2e403
commit 500739de3a

View File

@ -50,20 +50,8 @@ declare GIT=/usr/bin/git
declare TR=/usr/bin/tr
declare WC=/usr/bin/wc
case $OSTYPE in
linux-gnu|netbsd|darwin*)
declare DATE=/bin/date
declare HOSTNAME=/bin/hostname
;;
cygwin)
declare DATE=/usr/bin/date
declare HOSTNAME=/usr/bin/hostname
;;
*)
declare DATE=/bin/date
declare HOSTNAME=/bin/hostname
;;
esac
declare DATE=date
declare HOSTNAME=hostname