2 # $Id: Makefile 682 2007-07-19 09:00:25Z thierry $
5 ########## make sync PLCHOST=hostname
6 ########## make sync PLCHOST=hostname
9 PLCSSH:=root@$(PLCHOST):/vservers/$(VSERVER)
13 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' --exclude debug_root_ssh_key
14 RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
15 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
16 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
20 echo "sync: You must define PLCHOST and VSERVER on the command line"
21 echo " e.g. make sync PLCHOST=private.one-lab.org VSERVER=myplc01" ; exit 1
23 +$(RSYNC) source $(PLCSSH)/usr/share/bootmanager/
24 ssh root@$(PLCHOST) vserver $(VSERVER) exec service plc start bootmanager
29 find . '(' -name '*.py' -o -name '*.spec' ')' | xargs etags