making the source file executable under git was not enough, I suspect setup.py enforc...
[nodemanager.git] / Makefile
index 824138e..d6e6b73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ install: install-miscell install-startup
                --install-purelib=$(DESTDIR)/$(datadir)/NodeManager \
                --install-platlib=$(DESTDIR)/$(datadir)/NodeManager \
                --install-scripts=$(DESTDIR)/$(bindir)
+       chmod +x $(DESTDIR)/$(datadir)/NodeManager/conf_files.py
 
 # might be better in setup.py ?
 # NOTE: the sliver-initscripts/ and sliver-systemd stuff, being, well, for slivers,
@@ -107,7 +108,7 @@ debian.clean:
 
 ################################################## devel-oriented
 tags:
-       (find . '(' -name '*.py' -o -name '*.c' -o -name '*.spec' ')' ; ls initscripts/*) | xargs etags 
+       git ls-files | xargs etags
 
 .PHONY: tags
 
@@ -135,7 +136,7 @@ NODEURL:=root@$(NODE):/
 endif
 
 # this is for lxc only, we need to exclude the vs stuff that otherwise messes up everything on node
-# xxx keep this in sync with setup.spec
+# WARNING: keep this in sync with setup.spec
 LXC_EXCLUDES= --exclude sliver_vs.py --exclude coresched_vs.py --exclude drl.py
 
 # run with make SYNC_RESTART=false if you want to skip restarting nm
@@ -198,3 +199,11 @@ else
        @echo "FETCHING key"
        +scp $(KEYURL) $@
 endif
+
+########## exp. too
+SLICE=inri_sl1
+
+syncvinit:
+       $(RSYNC) sliver-systemd/vinit.st* $(NODEURL)/vservers/$(SLICE)/usr/bin/
+       $(RSYNC) sliver-systemd/vinit.service $(NODEURL)/vservers/$(SLICE)/usr/lib/systemd/system/
+       echo "remember to run 'systemctl --system daemon-reload' within this slice"