Commit ef949f63 authored by Leonardo Solis's avatar Leonardo Solis

update copy rule

parent 29c95f9d
......@@ -878,7 +878,9 @@ COPY_DIR := copy_$(PROJECT_NAME)
COPY_DIR_DOCK := $(PROJECT_NAME)
# Make sure this remote-server alias exists (in ~/.ssh/config)
SERVER := sauron
SERVER_BRIDGE := erebor:/scratch/
SERVER_EXEC := sauron:~/ocladock_prof
# Delete an existing folder if previously created
# Create a folder $(COPY_DIR) in the parent directory
......@@ -901,16 +903,20 @@ copy: clean-copy
cp -r input/ ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
cp -r wrapcl/ ../$(COPY_DIR)/$(COPY_DIR_DOCK)/
cp -r ../common ../$(COPY_DIR)/
cp ../conf_aoc160_$(SERVER).sh ../$(COPY_DIR)/
cp ../conf_aoc160_sauron.sh ../$(COPY_DIR)/
cd ../; zip -r $(COPY_DIR).zip $(COPY_DIR)
@echo " "
@echo "Transfer the $(COPY_DIR).zip file to $(SERVER) server: "
@echo "Transfer the $(COPY_DIR).zip file to $(SERVER_BRIDGE) server: "
@echo " "
cd ../ && scp $(COPY_DIR).zip $(SERVER_BRIDGE)
@echo " "
cd ../ && scp $(COPY_DIR).zip $(SERVER):~/
@echo "================================================="
@echo "Files listed were transferred to $(SERVER_BRIDGE)"
@echo " "
@echo "=========================================="
@echo "Files listed were transferred to $(SERVER)"
@echo "=========================================="
@echo "Then, transfer files manually "
@echo "from $(SERVER_BRIDGE) to $(SERVER_EXEC) "
@echo "================================================="
@echo " "
clean-copy:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment