From 6657881ac4dee28b2fac901cc2f663ddb4372a8a Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 5 Nov 2008 14:40:39 +0000 Subject: [PATCH] Handle name change git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1129 42af7a65-404d-4744-a932-0658087f49c3 --- configs/olimex-strp711/scripts/oocd.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configs/olimex-strp711/scripts/oocd.sh b/configs/olimex-strp711/scripts/oocd.sh index 9dbd167967..44ff4fa6f9 100755 --- a/configs/olimex-strp711/scripts/oocd.sh +++ b/configs/olimex-strp711/scripts/oocd.sh @@ -7,16 +7,16 @@ openocd=$installdir/openocd # The root to the top-level NuttX directory should be in an environment variable -if [ -z $STR41XCFGS ]; then - echo "Environment variable $STR41XCFGS is not defined" +if [ -z $STR41XSCRIPTS ]; then + echo "Environment variable $STR41XSCRIPTS is not defined" echo "Has NuttX been configured?" echo "If so, try sourcing the setenv.sh script in the top-level directory" exit 1 fi # Check that at least one configuration file exists at that point -if [ ! -f $STR41XCFGS/oocd_wiggler.cfg ]; then - echo "No configuration files found at $STR41XCFGS" +if [ ! -f $STR41XSCRIPTS/oocd_wiggler.cfg ]; then + echo "No configuration files found at $STR41XSCRIPTS" echo "Path to configuration files unknown" exit 1 fi @@ -27,7 +27,7 @@ usage="USAGE: $0 [-h] [-d] [-pp] [-ftdi]" debug=no interface=pp -oocdcfg=$STR41XCFGS/oocd_wiggler.cfg +oocdcfg=$STR41XSCRIPTS/oocd_wiggler.cfg while [ ! -z "$1" ]; do case $1 in -d ) @@ -36,11 +36,11 @@ while [ ! -z "$1" ]; do ;; -pp ) interface=pp - oocdcfg=$STR41XCFGS/oocd_wiggler.cfg + oocdcfg=$STR41XSCRIPTS/oocd_wiggler.cfg ;; -ftdi ) interface=ftdi - oocdcfg=$STR41XCFGS/oocd_ftdi.cfg + oocdcfg=$STR41XSCRIPTS/oocd_ftdi.cfg ;; -h ) echo $usage