Skip to content
Snippets Groups Projects
Commit e4e80645 authored by Marcus M. Darden's avatar Marcus M. Darden
Browse files

Fix the REMOTE_PATH for sync2caen target

Prior to this change, remote path was built up with a subdirectory, but
without a separate call to ssh to create the sync root directory, rsync
would not create the leaf directory. In addition, all manner of goofy
filenames are used that include spaces, by people other than the author.
Some quoting and double-quoting has been added and cleaned up to
resolve (all of) these issues.
parent f5489337
No related branches found
No related tags found
No related merge requests found
......@@ -165,18 +165,17 @@ $(FULL_SUBMITFILE): $(FULL_SUBMITFILES)
partialsubmit: identifier $(PARTIAL_SUBMITFILE)
fullsubmit: identifier $(FULL_SUBMITFILE)
sync2caen: REMOTE_PATH := ${REMOTE_BASEDIR}/$(notdir $(shell pwd))
sync2caen: REMOTE_PATH := ${REMOTE_BASEDIR}_${EXECUTABLE}_sync
sync2caen:
ssh login.engin.umich.edu "mkdir -p '${REMOTE_PATH}'"
# Synchronize local files into target directory on CAEN
rsync \
-av \
--delete \
--exclude '.git*' \
--exclude '.vs*' \
--exclude '.vs*' \
--filter=":- .gitignore" \
./ \
"."/ \
"login.engin.umich.edu:'${REMOTE_PATH}/'"
echo "Files synced to CAEN at ~/${REMOTE_PATH}/"
define MAKEFILE_HELP
EECS281 Advanced Makefile Help
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment