From e90904a6279134f4d535d893baff51ed7795915e 2018-09-26 16:30:21 From: Bradley M. Kuhn Date: 2018-09-26 16:30:21 Subject: [PATCH] Working Makefile installation. --- diff --git a/presentations/30min-specific-sections/Makefile b/presentations/30min-specific-sections/Makefile index 760adc4ad11335c302b9449f05411297a5692221..6f9beb22e002638cd02d59bc29e1d3021f35a1e3 100644 --- a/presentations/30min-specific-sections/Makefile +++ b/presentations/30min-specific-sections/Makefile @@ -4,8 +4,7 @@ # an environment variable before you type make. ifndef PRESENTATION_BASE -PRESENTATION_BASE=2hr-GPL -INSTALL_DIR=/home/bkuhn/Files/Personal/Website/www.ebb.org/web-public/bkuhn/talks/LCA-2017-Tutorial/ +PRESENTATION_BASE=specific-sections endif DO_INCREMENTAL_POINTS = -i -s @@ -76,8 +75,9 @@ clean: err: ; $(ERR) install: all - /bin/rm -rf $(INSTALL_DIR)/ui - /usr/bin/rsync -HavP ./ $(INSTALL_DIR) - /bin/rm -rf $(INSTALL_DIR)/ui - /usr/bin/rsync -HavP ../ui/ $(INSTALL_DIR)/ui/ + /usr/bin/rsync -HavP --exclude ui ./ copyleft.org:/var/www/presentations/$(PRESENTATION_BASE)/ + -ssh copyleft.org 'mkdir -p /var/www/presentations/$(PRESENTATION_BASE)/ui/conservancy/' + /usr/bin/rsync -HavP ui/conservancy/ copyleft.org:/var/www/presentations/$(PRESENTATION_BASE)/ui/conservancy/ + -ssh copyleft.org 'find /var/www/presentations/$(PRESENTATION_BASE) -exec chmod gou+r {} \;' + -ssh copyleft.org 'find /var/www/presentations/$(PRESENTATION_BASE) -type d -exec chmod gou+rx {} \;' ./pres-cmd diff --git a/presentations/30min-specific-sections/pres-cmd b/presentations/30min-specific-sections/pres-cmd index 2bf81cc472f39fc5348e91fa12c95830b175f076..33aff64f46847b3ecae3bc9db42038dc060eab03 100755 --- a/presentations/30min-specific-sections/pres-cmd +++ b/presentations/30min-specific-sections/pres-cmd @@ -1,6 +1,6 @@ #!/bin/sh -talk=lca-2017-2 +talk=half-day-gpl/specific-sections rsync -HavP ./ /home/pres/$talk/ rm -rf /home/pres/$talk/ui