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:
parent
23e1d2e403
commit
500739de3a
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user