diff --git a/ci/create-release.sh b/ci/create-release.sh index 6ca37e5232ae70da80109ecfc484092fd4263e33..ecbc9db9582ea5d1e3df6fd9b03ad3165604389f 100755 --- a/ci/create-release.sh +++ b/ci/create-release.sh @@ -41,6 +41,7 @@ rm -rf xtext-merge # let's copy the scripts to the correct location mkdir bin +cp -r src/core/de.evoal.core/scripts/* "bin" for NAME in $RELEASE_PLUGINS; do echo "Copying scripts of plugin $NAME" diff --git a/src/core/de.evoal.core.arff/scripts/run-arff-to-ddl.sh b/src/core/de.evoal.core.arff/scripts/run-arff-to-ddl.sh index 7340a40e07aa1e0efb09d8e76a9f8395eb1ea1b1..7d12bf34ed06bfb0a4d2b00a1434b113bc158da2 100755 --- a/src/core/de.evoal.core.arff/scripts/run-arff-to-ddl.sh +++ b/src/core/de.evoal.core.arff/scripts/run-arff-to-ddl.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 3 ]; then echo "Usage: $0 <execution-folder> <input.arff> <output.ddl>" diff --git a/src/core/de.evoal.core/scripts/paths.env b/src/core/de.evoal.core/scripts/paths.env index a5824f56fa6131dafd9adfd135daa1a360303944..dc8f454776b8e6ed0c112a7e7dcf5844d624512a 100644 --- a/src/core/de.evoal.core/scripts/paths.env +++ b/src/core/de.evoal.core/scripts/paths.env @@ -1,2 +1,2 @@ -EVOALPATH="$( cd -- "$(dirname "$0/..")" >/dev/null 2>&1 ; pwd -P )" -PLUGIN_PATHS=`ls -d "${EVOALPATH}/plugins"/* | tr '\n' ':'` +EVOALPATH=$( cd -- "$(dirname $0)/.." >/dev/null 2>&1 ; pwd -P ) +PLUGIN_PATHS=`ls -d "${EVOALPATH}/plugins"/* | tr '\n' ':'` \ No newline at end of file diff --git a/src/core/de.evoal.core/scripts/run-search.sh b/src/core/de.evoal.core/scripts/run-search.sh index 3356f39630bf62f60655bc2146521713c50a40bc..d559d1acd03cf3e93e063ddfbf6913699d8fc58e 100755 --- a/src/core/de.evoal.core/scripts/run-search.sh +++ b/src/core/de.evoal.core/scripts/run-search.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 3 ]; then echo "Usage: $0 <execution-folder> <eal-file> <output-folder>" diff --git a/src/core/de.evoal.generator.main/scripts/debug-generator.sh b/src/core/de.evoal.generator.main/scripts/debug-generator.sh index b03ec59ac4e5ff06d51d09432b76bdb479f458a5..f37431e77780149a72bf12767d8758818cd357b4 100755 --- a/src/core/de.evoal.generator.main/scripts/debug-generator.sh +++ b/src/core/de.evoal.generator.main/scripts/debug-generator.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 2 ]; then echo "Usage: $0 <execution-folder> <generator-file>" diff --git a/src/core/de.evoal.generator.main/scripts/run-generator.sh b/src/core/de.evoal.generator.main/scripts/run-generator.sh index ea70931a50b75e5c8715165013a1d3e8ba927e76..d60c3b38df72177d4f042f2257862687f06054a7 100755 --- a/src/core/de.evoal.generator.main/scripts/run-generator.sh +++ b/src/core/de.evoal.generator.main/scripts/run-generator.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 2 ]; then echo "Usage: $0 <execution-folder> <generator-file>" diff --git a/src/core/de.evoal.surrogate.api/scripts/debug-search-with-surrogate.sh b/src/core/de.evoal.surrogate.api/scripts/debug-search-with-surrogate.sh index 3e0ea934f9aad8e766af9212c8a0029793666890..1abaa842792f0c369480de3b0e834645fe79bab5 100755 --- a/src/core/de.evoal.surrogate.api/scripts/debug-search-with-surrogate.sh +++ b/src/core/de.evoal.surrogate.api/scripts/debug-search-with-surrogate.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 7 ]; then echo "Usage: $0 <execution-folder> <ea-file> <mll-file> <pre-trained.pson> <training-points.json> <output> <constraint-folder>" diff --git a/src/core/de.evoal.surrogate.api/scripts/debug-training.sh b/src/core/de.evoal.surrogate.api/scripts/debug-training.sh index e6a24e510dead864ce3256af51c4da7f98b4c4aa..55df393dda749e81144d4c287e8939d8fdff1d53 100755 --- a/src/core/de.evoal.surrogate.api/scripts/debug-training.sh +++ b/src/core/de.evoal.surrogate.api/scripts/debug-training.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 2 ]; then echo "Usage: $0 <execution-folder> <mll-file>" diff --git a/src/core/de.evoal.surrogate.api/scripts/run-search-with-surrogate.sh b/src/core/de.evoal.surrogate.api/scripts/run-search-with-surrogate.sh index b1cafeb9275ef3f2be3fa35f644d7948eddc9290..c1f7e30bc9b46fa2a054001f47437e80628fcf7f 100755 --- a/src/core/de.evoal.surrogate.api/scripts/run-search-with-surrogate.sh +++ b/src/core/de.evoal.surrogate.api/scripts/run-search-with-surrogate.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 7 ]; then echo "Usage: $0 <execution-folder> <ea-file> <mll-file> <pre-trained.pson> <training-points.json> <output> <constraint-folder>" diff --git a/src/core/de.evoal.surrogate.api/scripts/run-training.sh b/src/core/de.evoal.surrogate.api/scripts/run-training.sh index 7c8572e85b1e369fda03607cad48e1e09753b482..6e88a613c23be0bab8e7d3a26cadccec03d895c3 100755 --- a/src/core/de.evoal.surrogate.api/scripts/run-training.sh +++ b/src/core/de.evoal.surrogate.api/scripts/run-training.sh @@ -1,6 +1,6 @@ #!/bin/bash -source paths.env +source $( cd -- "$(dirname $0)/" >/dev/null 2>&1 ; pwd -P)/paths.env if [ "$#" -ne 2 ]; then echo "Usage: $0 <execution-folder> <mll-file>"