summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2014-01-03 08:40:50 -0700
committerRocky Madden <git@rockymadden.com>2014-01-03 08:40:50 -0700
commit04ecb8e68522e5446fc7ec5afd14e5295ff70e79 (patch)
treef5b3e01bed88b056c883085c4d304dd3c5f8d050
parentcc72a23e99c9cc02cc4993263addb213204d07ff (diff)
downloadstringmetric-04ecb8e68522e5446fc7ec5afd14e5295ff70e79.tar.gz
stringmetric-04ecb8e68522e5446fc7ec5afd14e5295ff70e79.tar.bz2
stringmetric-04ecb8e68522e5446fc7ec5afd14e5295ff70e79.zip
Meant to be run from project root.
-rwxr-xr-x[-rw-r--r--]project/build.sh14
-rwxr-xr-xreadme.md7
2 files changed, 11 insertions, 10 deletions
diff --git a/project/build.sh b/project/build.sh
index f7d074c..7d0f5cf 100644..100755
--- a/project/build.sh
+++ b/project/build.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-mkdir ../target/cli
+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/
+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
+for f in ./target/cli/*.scala; do cat ./project/scala.sh "$f" > "${f%.*}"; done
-rm ../target/cli/*.scala
-chmod +x ../target/cli/*
+rm ./target/cli/*.scala
+chmod +x ./target/cli/*
diff --git a/readme.md b/readme.md
index 507ef08..b02980e 100755
--- a/readme.md
+++ b/readme.md
@@ -308,8 +308,9 @@ StringMetric.compareWithJaroWinkler("abc123", "abc456")
## Building the CLIs
```shell
$ git clone https://github.com/rockymadden/stringmetric.git
-$ cd stringmetric/project
-$ ./build.sh
+$ cd stringmetric
+$ sbt clean package
+$ ./project/build.sh
```
---
@@ -317,7 +318,7 @@ $ ./build.sh
To run a command from the current directory that you would be in from doing the above:
```shell
-$ ../target/cli/jarometric abc xyz
+$ ./target/cli/jarometric abc xyz
```
---