For building SQL-DK you will need Java JDK, Mercurial, Ant and Perl. In Debian-like distributions you can install them by:
apt-get install openjdk-7-jdk mercurial ant perl
$ mkdir SQL-DK
$ cd SQL-DK
$ hg clone https://hg.frantovo.cz/sql-dk/
$ cd sql-dk
$ cd java/sql-dk/
$ ant
$ java -jar dist/sql-dk.jar --version
Mercurial: f07f69db2e4d tip
Compiled: 2013-12-28 22:34:29+01:00
Put this into your ~/.sql-dk/environment.sh
to use your freshly compiled JAR with production wrapper script:
JAR=~/…/SQL-DK/sql-dk/java/sql-dk/dist/sql-dk.jar;
In the SQL-DK/sql-dk/scripts
directory there is BASH wrapper for production use: sql-dk.sh
(should be installed as sql-dk
).
And there is also Perl generator of Bash completion script: bash_completion.pl
.
The Bash completion script is generated during Ant build and can be found in: SQL-DK/sql-dk/java/sql-dk/dist/bash-completion.sh
.
During SQL-DK runtime are generated Bash completion helper files which contain names of formatters and databases – derived from current configuration. These helper files are automatically loaded (if exist) by the Bash completion script.
There is interim script for building .deb package in SQL-DK/sql-dk/distributions/debian/build.sh
TODO: better build script and .deb packaging
TODO: build .rpm packages
SQL-DK, free software © 2013-2020 GlobalCode