comparison scripts/build_project.sh @ 443:a9af964ac18a prerelease

Properly setting date in build_project
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 19 Jun 2016 01:15:27 +0100
parents e49ae69acbe8
children 2b09be3fb0f2
comparison
equal deleted inserted replaced
442:6462d0cc8906 443:a9af964ac18a
97 BBB_PROJECT_FOLDER=$BBB_PROJECT_HOME"/"$BBB_PROJECT_NAME #make sure there is no trailing slash here 97 BBB_PROJECT_FOLDER=$BBB_PROJECT_HOME"/"$BBB_PROJECT_NAME #make sure there is no trailing slash here
98 BBB_NETWORK_TARGET_FOLDER=$BBB_ADDRESS:$BBB_PROJECT_FOLDER 98 BBB_NETWORK_TARGET_FOLDER=$BBB_ADDRESS:$BBB_PROJECT_FOLDER
99 99
100 echo "Stopping running process..." 100 echo "Stopping running process..."
101 # sets the date and stop running process 101 # sets the date and stop running process
102 ssh $BBB_ADDRESS "date -s '`date`' > /dev/null; mkdir -p $BBB_PROJECT_FOLDER; make QUIET=true --no-print-directory -C $BBB_BELA_HOME stop" 102 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; mkdir -p $BBB_PROJECT_FOLDER; make QUIET=true --no-print-directory -C $BBB_BELA_HOME stop"
103 103
104 #concatenate arguments to form path. 104 #concatenate arguments to form path.
105 HOST_SOURCE_PATH= #initially empty, will be filled with input arguments 105 HOST_SOURCE_PATH= #initially empty, will be filled with input arguments
106 for i in "$@" #parse input arguments 106 for i in "$@" #parse input arguments
107 do 107 do