# HG changeset patch # User Giulio Moro # Date 1463494328 -3600 # Node ID 428f13c2cb49e6f316ee3b31bcb1a3c7942d6c1a # Parent 247a182adb6d47672d2fe860c7d7ba0c962f5764 build_project.sh fixed folder handling by rsync diff -r 247a182adb6d -r 428f13c2cb49 scripts/build_project.sh --- a/scripts/build_project.sh Tue May 17 14:38:03 2016 +0100 +++ b/scripts/build_project.sh Tue May 17 15:12:08 2016 +0100 @@ -81,7 +81,7 @@ exit fi -BBB_PROJECT_FOLDER=$BBB_PROJECT_HOME"/"$BBB_PROJECT_NAME"/" +BBB_PROJECT_FOLDER=$BBB_PROJECT_HOME"/"$BBB_PROJECT_NAME #make sure there is no trailing slash here BBB_NETWORK_TARGET_FOLDER=$BBB_ADDRESS:$BBB_PROJECT_FOLDER # Stop BeagleRT and clean out old source files @@ -93,7 +93,7 @@ HOST_SOURCE_PATH= #initially empty, will be filled with input arguments for i in "$@" #parse input arguments do - HOST_SOURCE_PATH+=" $1 " + HOST_SOURCE_PATH+=" $1" shift # Copy new souce files to the board done @@ -108,7 +108,7 @@ scp $HOST_SOURCE_PATH "$BBB_NETWORK_TARGET_FOLDER" else #rsync --delete makes sure it removes files that are not in the origin folder - rsync -av --delete-after --exclude=build $HOST_SOURCE_PATH "$BBB_NETWORK_TARGET_FOLDER" + rsync -av --delete-after --exclude=build $HOST_SOURCE_PATH"/" "$BBB_NETWORK_TARGET_FOLDER/" #trailing slashes used here make sure rsync does not create another folder inside the target folder fi; if [ $? -ne 0 ]