Skip to content

Commit

Permalink
use only one startproject.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kakashitheaf committed Dec 29, 2014
1 parent 6057f01 commit af2b6d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
19 changes: 0 additions & 19 deletions linux.startproject.sh

This file was deleted.

10 changes: 9 additions & 1 deletion osx.startproject.sh → startproject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ function usage {
echo "\n usage:\n ./startproject.sh <project name>\n"
}

if [ "$1" == "" ]; then
if [ "$1"X == ""X ]; then
usage
exit
fi

if [ "$(uname)" == "Darwin" ]; then
alias sed='sed -i'
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo `uname -s`
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
echo `uname -s`
fi

echo "Starting project $1."

cp -r template $1
Expand Down

0 comments on commit af2b6d6

Please sign in to comment.