#!/usr/bin/env sh

ELM_BOILERPLATE_DIR=~/trap/elm/boilerplate

function error() {
  >&2 echo $*
  exit 1
}

[ "$*" == "" ] && error Usage: elm create "Your app name" && exit 1

[ "$(/usr/bin/env ls -A)" != "" ] && error Error: current folder should be empty

ln -s $ELM_BOILERPLATE_DIR/Makefile . || error Error: Makefile not found

echo Creating app : $*
APP_TITLE="$*" make

#!/usr/bin/env sh

ELM_BOILERPLATE_DIR=~/elm-boilerplate

function error() {
  >&2 echo $*
  exit 1
}

[ "$*" == "" ] && error Usage: elm create "Your app name" && exit 1

[ "$(/usr/bin/env ls -A)" != "" ] && error Error: current folder should be empty

ln -s $ELM_BOILERPLATE_DIR/Makefile . || error Error: Makefile not found

echo Creating app : $*
APP_TITLE="$*" make

Change ELM_BOILERPLATE_DIR according to README installation notes
Change ELM_BOILERPLATE_DIR according to README installation notes
