diff options
author | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2014-03-19 22:29:17 -0700 |
---|---|---|
committer | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2014-03-19 22:31:59 -0700 |
commit | 19a7e23cccb1b2f07b61ccbb11341ac85d37b9b1 (patch) | |
tree | f7a0f7af7a27f8fcb4937a2fca80d9a94f5c95ac | |
parent | aa0a52f9e6ca2e4499bb30f13af844aa94ebdae4 (diff) | |
download | caffeonacl-19a7e23cccb1b2f07b61ccbb11341ac85d37b9b1.tar.gz caffeonacl-19a7e23cccb1b2f07b61ccbb11341ac85d37b9b1.tar.bz2 caffeonacl-19a7e23cccb1b2f07b61ccbb11341ac85d37b9b1.zip |
fix script path incantation
-rwxr-xr-x | data/cifar10/get_cifar10.sh | 2 | ||||
-rwxr-xr-x | data/ilsvrc12/get_ilsvrc_aux.sh | 2 | ||||
-rwxr-xr-x | data/mnist/get_mnist.sh | 2 | ||||
-rwxr-xr-x | scripts/build_and_deploy_docs.sh | 2 | ||||
-rwxr-xr-x | tools/extra/parse_log.sh | 6 |
5 files changed, 7 insertions, 7 deletions
diff --git a/data/cifar10/get_cifar10.sh b/data/cifar10/get_cifar10.sh index 23e09eed..623c8485 100755 --- a/data/cifar10/get_cifar10.sh +++ b/data/cifar10/get_cifar10.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh # This scripts downloads the CIFAR10 (binary version) data and unzips it. -DIR="$(readlink -f $(dirname "$0"))" +DIR="$( cd "$(dirname "$0")" ; pwd -P )" cd $DIR echo "Downloading..." diff --git a/data/ilsvrc12/get_ilsvrc_aux.sh b/data/ilsvrc12/get_ilsvrc_aux.sh index dad17ff0..b8b4944b 100755 --- a/data/ilsvrc12/get_ilsvrc_aux.sh +++ b/data/ilsvrc12/get_ilsvrc_aux.sh @@ -6,7 +6,7 @@ # - synset ids and words # - the training splits with labels -DIR="$(readlink -f $(dirname "$0"))" +DIR="$( cd "$(dirname "$0")" ; pwd -P )" cd $DIR echo "Downloading..." diff --git a/data/mnist/get_mnist.sh b/data/mnist/get_mnist.sh index 9ece28f7..8eb6aeed 100755 --- a/data/mnist/get_mnist.sh +++ b/data/mnist/get_mnist.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh # This scripts downloads the mnist data and unzips it. -DIR="$(readlink -f $(dirname "$0"))" +DIR="$( cd "$(dirname "$0")" ; pwd -P )" cd $DIR echo "Downloading..." diff --git a/scripts/build_and_deploy_docs.sh b/scripts/build_and_deploy_docs.sh index fdb75dbf..b6029613 100755 --- a/scripts/build_and_deploy_docs.sh +++ b/scripts/build_and_deploy_docs.sh @@ -15,7 +15,7 @@ MSG=`git log --oneline -1` if [[ $BRANCH = 'master' ]]; then # Find the docs dir, no matter where the script is called - DIR="$(readlink -f $(dirname "$0"))" + DIR="$( cd "$(dirname "$0")" ; pwd -P )" DOCS_SITE_DIR=$DIR/../docs/_site # Make sure that docs/_site tracks remote:gh-pages. diff --git a/tools/extra/parse_log.sh b/tools/extra/parse_log.sh index 99844605..01ea6f49 100755 --- a/tools/extra/parse_log.sh +++ b/tools/extra/parse_log.sh @@ -1,10 +1,10 @@ #!/bin/bash -# Usage parse_log.sh caffe.log +# Usage parse_log.sh caffe.log # It creates two files one caffe.log.test that contains the loss and test accuracy of the test and # another one caffe.log.loss that contains the loss computed during the training -#get the dirname of the script -DIR="$(readlink -f $(dirname "$0"))" +# get the dirname of the script +DIR="$( cd "$(dirname "$0")" ; pwd -P )" if [ "$#" -lt 1 ] then |