42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
COPY?=cp -v
|
|
DEST?=/usr/local/share/perl/`ls -1 /usr/local/share/perl/ | grep "^5." | tail -1`/
|
|
GIT?=/usr/bin/git
|
|
GITOLITE_DEST?=/usr/share/gitolite/hooks/common
|
|
MAKEDIR?=mkdir
|
|
PROVER?=prove -f
|
|
RM?=rm
|
|
TESTDIR?=t
|
|
SHELL?=/bin/sh
|
|
|
|
launch:
|
|
$(SHELL) ./process/launch.sh
|
|
|
|
install:
|
|
$(SHELL) commands/first-install.sh
|
|
$(MAKEDIR) -p $(DEST)
|
|
$(COPY) -r ACU/ $(DEST)
|
|
! test -d $(GITOLITE_DEST) || $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
|
|
! test -d $(GITOLITE_DEST) || $(COPY) hooks/gl-pre-git $(GITOLITE_DEST)/
|
|
! test -d $(GITOLITE_DEST) || $(COPY) hooks/post-update $(GITOLITE_DEST)/
|
|
! test -d $(GITOLITE_DEST) || $(COPY) hooks/subjects.pl $(GITOLITE_DEST)/update.secondary.d/
|
|
! test -d $(GITOLITE_DEST) || $(COPY) hooks/conferences.pl $(GITOLITE_DEST)/update.secondary.d/
|
|
! test -d $(GITOLITE_DEST) || $(COPY) hooks/submissions.pl $(GITOLITE_DEST)/update.secondary.d/
|
|
|
|
update:
|
|
$(GIT) pull
|
|
$(SHELL) commands/first-install.sh
|
|
|
|
upgrade: install
|
|
|
|
unstall:
|
|
$(RM) -r $(DEST)/ACU/
|
|
! test -d $(GITOLITE_DEST) || $(RM) -rf $(GITOLITE_DEST)/gl-pre-git
|
|
! test -d $(GITOLITE_DEST) || $(RM) -rf $(GITOLITE_DEST)/update.secondary.d
|
|
! test -d $(GITOLITE_DEST) || $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
|
|
|
|
test:
|
|
$(PROVER) $(TESTDIR)
|
|
|
|
testv:
|
|
$(PROVER) -v $(TESTDIR)
|