Working Makefile installation.
This commit is contained in:
parent
6c38adff6c
commit
e90904a627
2 changed files with 7 additions and 7 deletions
|
@ -4,8 +4,7 @@
|
||||||
# an environment variable before you type make.
|
# an environment variable before you type make.
|
||||||
|
|
||||||
ifndef PRESENTATION_BASE
|
ifndef PRESENTATION_BASE
|
||||||
PRESENTATION_BASE=2hr-GPL
|
PRESENTATION_BASE=specific-sections
|
||||||
INSTALL_DIR=/home/bkuhn/Files/Personal/Website/www.ebb.org/web-public/bkuhn/talks/LCA-2017-Tutorial/
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DO_INCREMENTAL_POINTS = -i -s
|
DO_INCREMENTAL_POINTS = -i -s
|
||||||
|
@ -76,8 +75,9 @@ clean:
|
||||||
err: ; $(ERR)
|
err: ; $(ERR)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
/bin/rm -rf $(INSTALL_DIR)/ui
|
/usr/bin/rsync -HavP --exclude ui ./ copyleft.org:/var/www/presentations/$(PRESENTATION_BASE)/
|
||||||
/usr/bin/rsync -HavP ./ $(INSTALL_DIR)
|
-ssh copyleft.org 'mkdir -p /var/www/presentations/$(PRESENTATION_BASE)/ui/conservancy/'
|
||||||
/bin/rm -rf $(INSTALL_DIR)/ui
|
/usr/bin/rsync -HavP ui/conservancy/ copyleft.org:/var/www/presentations/$(PRESENTATION_BASE)/ui/conservancy/
|
||||||
/usr/bin/rsync -HavP ../ui/ $(INSTALL_DIR)/ui/
|
-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
|
./pres-cmd
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
talk=lca-2017-2
|
talk=half-day-gpl/specific-sections
|
||||||
|
|
||||||
rsync -HavP ./ /home/pres/$talk/
|
rsync -HavP ./ /home/pres/$talk/
|
||||||
rm -rf /home/pres/$talk/ui
|
rm -rf /home/pres/$talk/ui
|
||||||
|
|
Loading…
Reference in a new issue