mirror of https://github.com/sbt/sbt.git
Made the default package "template" rather than improving, and
read it from the ORGANIZATION env variable if set.
This commit is contained in:
parent
479f9e5141
commit
dc7b0285cc
|
|
@ -3,7 +3,8 @@
|
||||||
|
|
||||||
PROJECT="$1"
|
PROJECT="$1"
|
||||||
|
|
||||||
ORGANIZATION="improving"
|
DEFAULT_PACKAGE="template"
|
||||||
|
PACKAGE=${ORGANIZATION:-$DEFAULT_PACKAGE}
|
||||||
SCALA_VERSION="2.8.1"
|
SCALA_VERSION="2.8.1"
|
||||||
SCALACHECK_VERSION="1.8"
|
SCALACHECK_VERSION="1.8"
|
||||||
SPECS_VERSION="1.6.7"
|
SPECS_VERSION="1.6.7"
|
||||||
|
|
@ -55,7 +56,7 @@ EOF
|
||||||
cat > project/build.properties <<EOF
|
cat > project/build.properties <<EOF
|
||||||
#Project properties
|
#Project properties
|
||||||
#Generated by sbt-setup
|
#Generated by sbt-setup
|
||||||
project.organization=$ORGANIZATION
|
project.organization=$PACKAGE
|
||||||
project.name=$PROJECT
|
project.name=$PROJECT
|
||||||
sbt.version=$SBT_VERSION
|
sbt.version=$SBT_VERSION
|
||||||
project.version=0.1
|
project.version=0.1
|
||||||
|
|
@ -66,7 +67,7 @@ EOF
|
||||||
mkdir -p src/main/scala
|
mkdir -p src/main/scala
|
||||||
|
|
||||||
cat > src/main/scala/Main.scala <<EOF
|
cat > src/main/scala/Main.scala <<EOF
|
||||||
package $ORGANIZATION
|
package $PACKAGE
|
||||||
|
|
||||||
object Main {
|
object Main {
|
||||||
def main(args: Array[String]): Unit = {
|
def main(args: Array[String]): Unit = {
|
||||||
|
|
@ -78,7 +79,7 @@ EOF
|
||||||
mkdir -p src/test/scala
|
mkdir -p src/test/scala
|
||||||
|
|
||||||
cat > src/test/scala/TemplateSpec.scala <<EOF
|
cat > src/test/scala/TemplateSpec.scala <<EOF
|
||||||
package $ORGANIZATION
|
package $PACKAGE
|
||||||
|
|
||||||
import org.specs._
|
import org.specs._
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue