comparison scripts/ide.sh @ 462:d9a4fc5357e7 prerelease

Path-relativeness of scripts has been improved. At least update_board will work when double clicked
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 20 Jun 2016 14:09:43 +0100
parents 84841654c606
children
comparison
equal deleted inserted replaced
461:26b3b87437fb 462:d9a4fc5357e7
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 3
4 # set defaults unless variables are already set 4 # set defaults unless variables are already set
5 5
6 . ./.bela_common || exit 1 6 SCRIPTDIR=$(dirname "$0")
7 [ -z $SCRIPTDIR ] && SCRIPTDIR="./" || SCRIPTDIR=$SCRIPTDIR/
8 . $SCRIPTDIR.bela_common || { echo "You must be in Bela/scripts to run these scripts" | exit 1; }
7 9
8 usage() 10 usage()
9 { 11 {
10 THIS_SCRIPT=`basename "$0"` 12 THIS_SCRIPT=`basename "$0"`
11 echo "Usage: $THIS_SCRIPT [start] [stop] [startup] [nostartup] " 13 echo "Usage: $THIS_SCRIPT [start] [stop] [startup] [nostartup] "