From 04ecb8e68522e5446fc7ec5afd14e5295ff70e79 Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Fri, 3 Jan 2014 08:40:50 -0700 Subject: Meant to be run from project root. --- project/build.sh | 14 +++++++------- readme.md | 7 ++++--- 2 files changed, 11 insertions(+), 10 deletions(-) mode change 100644 => 100755 project/build.sh diff --git a/project/build.sh b/project/build.sh old mode 100644 new mode 100755 index f7d074c..7d0f5cf --- 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 ``` --- -- cgit v1.2.3