head 1.3; access; symbols AS_AFTER_RESTRUCTURING:1.1; locks; strict; comment @# @; 1.3 date 2003.03.07.20.31.21; author rse; state Exp; branches; next 1.2; 1.2 date 2003.03.07.20.30.45; author rse; state Exp; branches; next 1.1; 1.1 date 2002.10.02.19.01.33; author rse; state Exp; branches; next ; desc @@ 1.3 log @do not edit by default @ text @ PREFIX = /as/sw SU_PASSWORD = as4us AS_DATABASE = as AS_USERNAME = as AS_PASSWORD = as default: destroy create edit: PATH=$(PREFIX)/bin:$$PATH; psql -U $(AS_USERNAME) -d $(AS_DATABASE) create: PATH=$(PREFIX)/bin:$$PATH; ./as_db.pl --su-password=$(SU_PASSWORD) create destroy: PATH=$(PREFIX)/bin:$$PATH; ./as_db.pl --su-password=$(SU_PASSWORD) destroy autodoc: -@@test -d as_db || mkdir as_db -@@cd as_db; $(PREFIX)/bin/pg_autodoc -d $(AS_DATABASE) -u $(AS_USERNAME) --password=$(AS_PASSWORD) -@@cd as_db; $(PREFIX)/bin/dot -Tps $(AS_DATABASE).dot >$(AS_DATABASE).ps -@@cd as_db; $(PREFIX)/bin/dot -Tpng $(AS_DATABASE).dot >$(AS_DATABASE).png clean: -rm -rf as_db @ 1.2 log @fully work off the AS DB API architecture by introducing a Perl management API for the AS DB which currently at least performs all the schema creation/destruction the old executable as_db.pl did. The new as_db.pl now just calls this Perl API. @ text @d8 1 a8 1 default: destroy create edit @ 1.1 log @add a small Makefile for common tasks @ text @d3 1 a3 1 SU_PASSWORD = postgresql d8 10 a17 2 setup: -@@PATH=$(PREFIX)/bin:$PATH; ./as_db.pl --su-password=$(SU_PASSWORD) @