Commit c7f4c6d5 authored by Pauline Pommeret's avatar Pauline Pommeret

Last optimizations

parent b8ca80a5
......@@ -3,6 +3,8 @@ BEGPWD=$(shell pwd -P)
.PHONY: clean rmpyc purgedoc
tarball: pommeret_senizergues.tar.gz
pommeret_senizergues.tar.gz: clean
@${ECHO} Making source tarball...
cd /tmp; tar -C ${BEGPWD} --exclude-vcs -czv -f pommeret_senizergues.tar.gz .; mv pommeret_senizergues.tar.gz ${BEGPWD}
......@@ -29,3 +31,6 @@ doc/html:
doc/latexpdf:
@${ECHO} Building pdflatex documentation...
@make -C doc latexpdf
create_db:
${BEGPWD}/sql/create_db.sh chopopope
......@@ -29,8 +29,21 @@
"""
This program populates a pre-existing PostgreSQL database with the results.
The datadir tree must look like
datadir
- dir1
- group (mandatory)
- sequence.fasta (mandatory)
- rise.dat
- roll.dat
- tilt.dat
- twist.dat
- shift.dat
- slide.dat
- ...
.. warning::
This programe requires a PostgreSQL database in order to work properly!
This program requires a PostgreSQL database in order to work properly!
Please run :py:data:`sql.create_db.sh` with your PAM username as an
argument or create a PostgreSQL using the bdd schema stored in
:py:data:`sql.create_db.sql`.
......@@ -45,6 +58,7 @@ This program populates a pre-existing PostgreSQL database with the results.
* :py:mod:`lib.XylokExceptions`
* :py:mod:`lib.trx`
* :py:mod:`lib.database`
"""
import os
......
......@@ -27,8 +27,10 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
set -x
sudo -u postgres psql -d postgres -c "CREATE ROLE $1 LOGIN";
sudo -u postgres createdb itpp -O $1;
sudo -u $1 psql -d itpp -f ./create_tables.sql
sudo -u $1 psql -d itpp -f ${DIR}/create_tables.sql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment