Last active
August 29, 2015 14:03
-
-
Save allex/7e3585ff55b75f5cfe7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ================================================ | |
# Description: %TITLE% | |
# GistID: 7e3585ff55b75f5cfe7a | |
# Last Modified: Sun Jul 13, 2014 12:12PM | |
# Author: Allex Wang ([email protected]) | |
# ================================================ | |
BASEDIR=`dirname $0` | |
BASEDIR=`(cd "$BASEDIR"; pwd)` | |
OSNAME="unknow" | |
case "`uname`" in | |
CYGWIN*) OSNAME="cygwin" ;; | |
Linux*) OSNAME="linux" ;; | |
Darwin*) OSNAME="darwin" ;; | |
esac | |
echo $BASEDIR; | |
echo $OSNAME; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment