epita-std
/
ACU
Archived
1
0
Fork 0
This repository has been archived on 2021-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
ACU/Makefile

64 lines
2.2 KiB
Makefile
Raw Permalink Normal View History

2013-09-28 21:11:46 +00:00
COPY?=cp -v
CURL?=curl
2013-10-01 03:30:41 +00:00
DEST?=/usr/local/share/perl/`ls -1 /usr/local/share/perl/ | grep "^5." | tail -1`/
2013-09-28 21:11:46 +00:00
GIT?=/usr/bin/git
GITOLITE_DEST?=/usr/share/gitolite/hooks/common
MAKEDIR?=mkdir
PERL?=/usr/bin/env perl
2013-09-28 21:11:46 +00:00
PROVER?=prove -f
RM?=rm
RMTREE?=rm -r
2013-09-28 21:11:46 +00:00
TESTDIR?=t
SHELL?=/bin/sh
launch:
2013-09-15 10:52:20 +00:00
$(SHELL) ./process/launch.sh
2013-09-09 11:51:53 +00:00
install:
2013-09-14 08:52:59 +00:00
$(SHELL) commands/first-install.sh
2013-09-09 11:51:53 +00:00
$(MAKEDIR) -p $(DEST)
$(COPY) -r ACU/ $(DEST)
! test -d $(GITOLITE_DEST) || $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
2013-10-07 14:42:02 +00:00
! test -d $(GITOLITE_DEST) || $(COPY) hooks/gl-pre-git $(GITOLITE_DEST)/
2013-11-26 18:17:19 +00:00
! test -d $(GITOLITE_DEST) || $(COPY) hooks/post-update $(GITOLITE_DEST)/
2013-10-07 14:42:02 +00:00
! test -d $(GITOLITE_DEST) || $(COPY) hooks/subjects.pl $(GITOLITE_DEST)/update.secondary.d/
2013-10-23 04:57:13 +00:00
! test -d $(GITOLITE_DEST) || $(COPY) hooks/conferences.pl $(GITOLITE_DEST)/update.secondary.d/
2013-10-07 14:42:02 +00:00
! test -d $(GITOLITE_DEST) || $(COPY) hooks/submissions.pl $(GITOLITE_DEST)/update.secondary.d/
2013-09-09 11:51:53 +00:00
2013-12-01 05:12:27 +00:00
guantanamo.tar.gz:
$(MAKEDIR) -p guantanamo/ACU
$(COPY) process/exec/guantanamo_node.pl guantanamo/
$(COPY) ACU/Log.pm ACU/Process.pm process/exec/guantanamo_node.pl guantanamo/ACU/
$(COPY) process/exec/run.sh.not-here guantanamo/run.sh
chmod +x guantanamo/run.sh
tar czf guantanamo.tar.gz guantanamo/
$(RMTREE) guantanamo
2013-12-01 05:12:27 +00:00
update:
2013-09-14 08:56:31 +00:00
$(GIT) pull
$(SHELL) commands/first-install.sh
upgrade: install
2013-09-14 08:52:59 +00:00
2013-09-09 11:51:53 +00:00
unstall:
$(RM) -r $(DEST)/ACU/
2013-10-07 14:42:02 +00:00
! 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
2013-09-09 11:51:53 +00:00
regen-objects:
$(MAKEDIR) -p ACU/dtd
$(CURL) -o ACU/dtd/defense.dtd http://acu.epita.fr/dtd/defense.dtd
$(CURL) -o ACU/dtd/grading.dtd http://acu.epita.fr/dtd/grading.dtd
$(CURL) -o ACU/dtd/groups.dtd http://acu.epita.fr/dtd/groups.dtd
$(CURL) -o ACU/dtd/project.dtd http://acu.epita.fr/dtd/project.dtd
$(CURL) -o ACU/dtd/traces.dtd http://acu.epita.fr/dtd/traces.dtd
$(PERL) -I baldr baldr/Baldr.pl --import="ACU/Objects/basecode/*.pm" --path=ACU/Objects ACU/dtd/defense.dtd ACU/dtd/grading.dtd ACU/dtd/groups.dtd ACU/dtd/project.dtd ACU/dtd/traces.dtd
$(RMTREE) ACU/dtd
2013-09-09 11:51:53 +00:00
test:
$(PROVER) $(TESTDIR)
testv:
$(PROVER) -v $(TESTDIR)