diff options
author | Rocky Madden <git@rockymadden.com> | 2014-01-02 16:21:50 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2014-01-02 16:21:50 -0700 |
commit | 15e06ee3af2d0001746a33e2ab37d9c48d163f93 (patch) | |
tree | b2eb8cd0bd4113c1ab734ad66e0cfca22698b923 /project | |
parent | b8dca788953a60786317bdaae2b15395a2cb24d4 (diff) | |
download | stringmetric-15e06ee3af2d0001746a33e2ab37d9c48d163f93.tar.gz stringmetric-15e06ee3af2d0001746a33e2ab37d9c48d163f93.tar.bz2 stringmetric-15e06ee3af2d0001746a33e2ab37d9c48d163f93.zip |
Created build.sh which will build the CLI instead of gradle.
Diffstat (limited to 'project')
-rw-r--r-- | project/build.scala | 1 | ||||
-rw-r--r-- | project/build.sh | 11 | ||||
-rw-r--r-- | project/scala.sh | 7 |
3 files changed, 18 insertions, 1 deletions
diff --git a/project/build.scala b/project/build.scala index 1e11e54..de4f28a 100644 --- a/project/build.scala +++ b/project/build.scala @@ -1,4 +1,3 @@ -import com.typesafe.sbt.pgp.PgpKeys._ import sbt._ import Keys._ diff --git a/project/build.sh b/project/build.sh new file mode 100644 index 0000000..f7d074c --- /dev/null +++ b/project/build.sh @@ -0,0 +1,11 @@ +#!/bin/sh +mkdir ../target/cli + +cp ../cli/src/main/scala/com/rockymadden/stringmetric/cli/**/*.scala ../target/cli/ +cp ../cli/target/scala-2.10/*.jar ../target/cli/ +cp ../core/target/scala-2.10/*.jar ../target/cli/ + +for f in ../target/cli/*.scala; do cat scala.sh "$f" > "${f%.*}"; done + +rm ../target/cli/*.scala +chmod +x ../target/cli/* diff --git a/project/scala.sh b/project/scala.sh new file mode 100644 index 0000000..5aa0e4e --- /dev/null +++ b/project/scala.sh @@ -0,0 +1,7 @@ +#!/bin/bash +dir="`dirname \"$0\"`" +dir="`( cd \"$dir\" && pwd )`" +cp=`echo $dir/*.jar|sed 's/ /:/g'` +exec scala -classpath "$cp" -savecompiled "$0" "$@" +!# +//
\ No newline at end of file |