Created
March 10, 2015 20:38
-
-
Save evnm/31e4c5e4d37fb477b15c to your computer and use it in GitHub Desktop.
A little script to generate new Scala+Maven projects
This file contains 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 | |
# | |
# A little script to generate new Scala+Maven projects. | |
set -e | |
if test $# -lt 1; then | |
echo "usage: $0 <project name>" | |
exit 1 | |
fi | |
PROJECT_NAME="$1" | |
mkdir "$PROJECT_NAME" | |
git clone git@github.com:evnm/new-scala-maven-project.git "$PROJECT_NAME" | |
rm -rf "./$PROJECT_NAME/.git" | |
find "./$PROJECT_NAME" -type f -exec sed -i '' -e "s/newservice/$PROJECT_NAME/g" {} \; | |
echo "New project created in the directory $(pwd)/$PROJECT_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment