Update hostname in Makefile, make it slightly more verbose
This commit is contained in:
parent
159d6183cf
commit
07b2b64f3d
@ -3,8 +3,9 @@ CXX=arm-frc-linux-gnueabi-g++
|
|||||||
override CPPFLAGS +=-std=c++14
|
override CPPFLAGS +=-std=c++14
|
||||||
LDFLAGS=-l$(LIBS)
|
LDFLAGS=-l$(LIBS)
|
||||||
TEAM=1786
|
TEAM=1786
|
||||||
SSH_OPTIONS=-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
|
SSH_OPTIONS=-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
|
||||||
SSH_SSHPASS=$(shell command -v sshpass >/dev/null 2>&1 && echo -n "sshpass -p ''")
|
SSH_SSHPASS=$(shell command -v sshpass >/dev/null 2>&1 && echo -n "sshpass -p ''")
|
||||||
|
SSH_HOST=roborio-1786-frc.local
|
||||||
|
|
||||||
all: deploy
|
all: deploy
|
||||||
|
|
||||||
@ -19,16 +20,16 @@ clean:
|
|||||||
|
|
||||||
deploy: build
|
deploy: build
|
||||||
@echo "Copying FRCUserProgram"
|
@echo "Copying FRCUserProgram"
|
||||||
@ssh $(SSH_OPTIONS) lvuser@10.17.86.20 'rm -f /home/lvuser/FRCUserProgram'
|
ssh $(SSH_OPTIONS) lvuser@$(SSH_HOST) 'rm -f /home/lvuser/FRCUserProgram'
|
||||||
@scp $(SSH_OPTIONS) -o "LogLevel QUIET" FRCUserProgram lvuser@10.17.86.20:/home/lvuser/FRCUserProgram
|
scp $(SSH_OPTIONS) -o "LogLevel QUIET" FRCUserProgram lvuser@$(SSH_HOST):/home/lvuser/FRCUserProgram
|
||||||
@echo "Restarting FRCUserProgram"
|
@echo "Restarting FRCUserProgram"
|
||||||
@$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@10.17.86.20 '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r'
|
$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@$(SSH_HOST) '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r'
|
||||||
|
|
||||||
restart: FRCUserProgram
|
restart: FRCUserProgram
|
||||||
@echo "Restarting FRCUserProgram"
|
echo "Restarting FRCUserProgram"
|
||||||
@$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@10.17.86.20 '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r'
|
$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@$(SSH_HOST) '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r'
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
@echo "Restarting FRCUserProgram"
|
@echo "Restarting FRCUserProgram"
|
||||||
@$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@10.17.86.20 '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t'y
|
$(SSH_SSHPASS) ssh $(SSH_OPTIONS) admin@$(SSH_HOST) '. /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t'y
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user