2014-08-04 09:40:25 +00:00
|
|
|
#!/bin/bash
|
2017-08-23 14:41:01 +00:00
|
|
|
IS_CYGWIN=false
|
2014-08-04 09:40:25 +00:00
|
|
|
|
2015-05-14 01:58:15 +00:00
|
|
|
case $( uname -a | awk '{ print $1 }' ) in
|
|
|
|
Darwin) # although this is deprecated, Mac still use it
|
|
|
|
PERM="+111"
|
|
|
|
;;
|
2015-05-19 05:47:17 +00:00
|
|
|
# Linux) ;& // Fall through does not support in OS X
|
2017-08-23 14:41:01 +00:00
|
|
|
CYGWIN*)
|
|
|
|
PERM="/111"
|
|
|
|
IS_CYGWIN=true
|
|
|
|
;;
|
2015-05-14 01:58:15 +00:00
|
|
|
*)
|
|
|
|
PERM="/111"
|
|
|
|
;;
|
|
|
|
esac
|
2017-08-23 14:41:01 +00:00
|
|
|
|
2014-08-04 09:40:25 +00:00
|
|
|
function __func_head() {
|
|
|
|
echo "Usage:" ${FUNCNAME[1]} $1
|
|
|
|
}
|
|
|
|
|
|
|
|
function __func_help() {
|
|
|
|
# echo "Usage:" ${FUNCNAME[1]} $1
|
|
|
|
echo " ${FUNCNAME[1]} $1"
|
|
|
|
}
|