diff --git a/Repositories/statistics/Makefile b/Repositories/statistics/Makefile new file mode 100755 index 0000000..9cdb2a6 --- /dev/null +++ b/Repositories/statistics/Makefile @@ -0,0 +1,26 @@ +SHELL=/bin/sh + +EPRINTSSTATS:=/usr/local/eprints/ePrintsStats +BINDIR:=$(EPRINTSSTATS)/scripts + + +.PHONY: deploy stats + + +deploy: + @announce "Copying files..." + @sudo rsync --verbose --cvs-exclude --exclude=Makefile \ + --recursive --times . $(EPRINTSSTATS) + @announce "Correcting ownership..." + sudo chown -R www:www $(EPRINTSSTATS) + + +stats: + @announce "Generating statistics..." + @sudo -u www php $(BINDIR)/eprints-usage.php + @sudo -u www perl $(BINDIR)/add_country.pl + + +debug: + @echo "EPRINTSSTATS = [$(EPRINTSSTATS)]" + @echo "BINDIR = [$(BINDIR)]"