diff --git a/Repositories/otago_eprints/Makefile b/Repositories/otago_eprints/Makefile index 3ed514f..3ffe84c 100755 --- a/Repositories/otago_eprints/Makefile +++ b/Repositories/otago_eprints/Makefile @@ -3,6 +3,8 @@ ARCHIVE_NAME:=otago_eprints EPRINTS:=/usr/local/eprints +BINDIR:=$(EPRINTS)/bin + ARCHIVE_ROOT:=$(EPRINTS)/archives/$(ARCHIVE_NAME) ARCHIVE_CONFIG:=$(EPRINTS)/archives/$(ARCHIVE_NAME).xml @@ -11,7 +13,8 @@ deploy: - @sudo rsync --verbose --cvs-exclude --exclude=Makefile --recursive --times . $(EPRINTS)/archives + @sudo rsync --verbose --cvs-exclude --exclude=Makefile --recursive \ + --times --delete --delete-excluded . $(EPRINTS)/archives sudo chown -R www:www $(ARCHIVE_CONFIG) $(ARCHIVE_ROOT)