3 # how to push a working directoy to a running plc
7 find . -type f | grep -v '/\.svn/' | egrep -v '/(uudecode.gz|tags|TAGS)$$' | xargs etags
11 ########## make sync PLCHOST=hostname VSERVER=vservername
14 PLCSSH:=root@$(PLCHOST):/vservers/$(VSERVER)
18 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc'
19 RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
20 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
21 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
25 echo "sync: You must define PLCHOST and VSERVER on the command line"
26 echo " e.g. make sync PLCHOST=private.one-lab.org VSERVER=myplc01" ; exit 1
28 +$(RSYNC) PlanetLabConf boot PLCAPI $(PLCSSH)/var/www/html/
29 ssh root@$(PLCHOST) vserver $(VSERVER) exec apachectl graceful