X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=backup%2FMakefile;h=2efa2578fdfedfb9094150195175805b08fc7e0f;hp=91f76640fbadd683ddd3488093fc32890822d38c;hb=cf0ee9747debc62a3a979f3d259b25688a543955;hpb=2c444eebd71ff12a6c29ffaa91d2e716c8f9ca6e diff --git a/backup/Makefile b/backup/Makefile index 91f7664..2efa257 100644 --- a/backup/Makefile +++ b/backup/Makefile @@ -26,19 +26,25 @@ us= chiark-backup include ../settings.make BINSCRIPTS= checkallused loaded driver takedown whatsthis labeltape -SHARESCRIPTS= bringup full increm +SHARESCRIPTS= bringup full increm snap-drop SHAREFILES= backuplib.pl +SNAPKINDS= lvm remount EXAMPLES= relativity chiark all: install: all - $(INSTALL_DIRECTORY) $(confdir) $(bindir) $(sharedir) $(vardir) $(man1dir) + $(INSTALL_DIRECTORY) $(confdir) $(confdir)/snap $(bindir) \ + $(sharedir) $(vardir) $(man1dir) set -e; for s in $(BINSCRIPTS); do \ $(INSTALL_SCRIPT) $$s $(bindir)/backup-$$s; done $(INSTALL_SHARE) $(SHAREFILES) $(sharedir) $(INSTALL_SCRIPT) $(SHARESCRIPTS) $(sharedir) + set -e; for s in $(SNAPKINDS); do \ + d=$(confdir)/snap/$$s; \ + test ! -f $$d || d=$$d.dist; \ + $(INSTALL_SCRIPT) $$s $$d; done install-docs: $(INSTALL_DIRECTORY) $(txtdocdir) @@ -51,7 +57,7 @@ install-examples: $(INSTALL_SHARE) [^A-Z]*[^~] $(exampledir)/$$e; \ if test -f SYMLINKS.tar; then \ exec