comparison scripts/build_project.sh @ 447:86591d203c78 prerelease

Updated scripts to use "." instead of source, for sh compatibility
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 19 Jun 2016 16:33:05 +0100
parents 2b09be3fb0f2
children d9a4fc5357e7
comparison
equal deleted inserted replaced
446:566bb80c2d14 447:86591d203c78
4 # optionally runs it. Pass a directory path in the first argument. 4 # optionally runs it. Pass a directory path in the first argument.
5 # The source files in this directory are copied to the board and compiled. 5 # The source files in this directory are copied to the board and compiled.
6 6
7 # set defaults unless variables are already set 7 # set defaults unless variables are already set
8 8
9 [ -f ".bela_common" ] && echo "loading bela_common" || { echo "Error: cannot find .bela_common . Make sure you run the script from within the scripts/ folder"; exit 1; } 9 . ./.bela_common || exit 1
10 source .bela_common
11 10
12 usage() 11 usage()
13 { 12 {
14 THIS_SCRIPT=`basename "$0"` 13 THIS_SCRIPT=`basename "$0"`
15 echo "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] <directory-with-source-files>" 14 echo "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] <directory-with-source-files>"