Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A little script to generate new Scala+Maven projects
#! /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
You can’t perform that action at this time.