#!/usr/bin/env sh
# This scripts downloads the CIFAR10 (binary version) data and unzips it.
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="$(readlink -f $(dirname "$0"))"
cd $DIR
echo "Downloading..."
# - synset ids and words
# - the training splits with labels
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="$(readlink -f $(dirname "$0"))"
cd $DIR
echo "Downloading..."
#!/usr/bin/env sh
# This scripts downloads the mnist data and unzips it.
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="$(readlink -f $(dirname "$0"))"
cd $DIR
echo "Downloading..."
if [[ $BRANCH = 'master' ]]; then
# Find the docs dir, no matter where the script is called
- DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+ DIR="$(readlink -f $(dirname "$0"))"
DOCS_SITE_DIR=$DIR/../docs/_site
# Make sure that docs/_site tracks remote:gh-pages.
# another one caffe.log.loss that contains the loss computed during the training
#get the dirname of the script
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="$(readlink -f $(dirname "$0"))"
if [ "$#" -lt 1 ]
then