Skip to content

Commit

Permalink
fix script path incantation
Browse files Browse the repository at this point in the history
  • Loading branch information
shelhamer committed Mar 20, 2014
1 parent aa0a52f commit 19a7e23
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/cifar10/get_cifar10.sh
Original file line number Diff line number Diff line change
@@ -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..."
Expand Down
2 changes: 1 addition & 1 deletion data/ilsvrc12/get_ilsvrc_aux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
2 changes: 1 addition & 1 deletion data/mnist/get_mnist.sh
Original file line number Diff line number Diff line change
@@ -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..."
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_and_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions tools/extra/parse_log.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 19a7e23

Please sign in to comment.