27 lines
1.0 KiB
Makefile
27 lines
1.0 KiB
Makefile
all:
|
|
@echo "You can do ./make [update-fixtures]"
|
|
|
|
update-fixtures:
|
|
./manage.py dumpdata base.role >polynum/base/fixtures/roles.json
|
|
./manage.py dumpdata base.status >polynum/base/fixtures/status.json
|
|
./manage.py dumpdata base.transition base.mailnotification base.action >polynum/base/fixtures/workflow.json
|
|
./manage.py dumpdata base.profileoptionchoice base.profile base.profileoption base.documentusage base.documentlicence base.deliveryplace >polynum/base/fixtures/profiles.json
|
|
git commit -m 'mise à jour des fixtures' polynum/base/fixtures/*.json
|
|
|
|
create-ldap-tunnel:
|
|
ssh -v -p5022 -fN -L2000:ldap.ent.dauphine.fr:636 sshgate@cerbere.dsi.dauphine.fr
|
|
|
|
rebuild-indexes:
|
|
python manage.py sqlindexes base | sed 's/CREATE/DROP/;s/INDEX/INDEX IF EXISTS/;s/ ON.*;/;/' | psql polynum
|
|
python manage.py sqlindexes base | psql polynum
|
|
|
|
# only for package creation
|
|
INSTALL=/usr/bin/install
|
|
CP=/bin/cp
|
|
install:
|
|
$(INSTALL) -d $(DESTDIR)/opt/polynum
|
|
$(CP) -r polynum $(DESTDIR)/opt/polynum
|
|
$(CP) -r bin $(DESTDIR)/opt/polynum
|
|
$(INSTALL) -d $(DESTDIR)/etc/polynum
|
|
|