This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
polynum/Makefile

35 lines
1.2 KiB
Makefile

all:
@echo "You can do ./make [update-fixtures]"
update-fixtures:
./manage.py dumpdata auth.group >polynum/base/fixtures.groups.json
./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
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
# mainly for packages 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
$(INSTALL) -d $(DESTDIR)/var/lib/polynum
$(INSTALL) -d $(DESTDIR)/opt/polynum/static
deb:
dch --newversion=0.0.`date +%Y%m%d`~git`git log -1 --oneline | cut -f1 -d" "`-1
dch -r ""
cd debian && pdebuild