1.1 --- a/scripts/sql-dk.sh Wed Jan 08 19:59:19 2014 +0100
1.2 +++ b/scripts/sql-dk.sh Wed Jan 08 20:08:53 2014 +0100
1.3 @@ -2,15 +2,16 @@
1.4
1.5 # include user-defined overrides and customization
1.6 if [ -f ~/.sql-dk/environment.sh ]; then # .sql-dk must match with DIR in Constants.java
1.7 - . ~/.sql-dk/environment.sh
1.8 + . ~/.sql-dk/environment.sh
1.9 +else
1.10 + mkdir -p ~/.sql-dk/
1.11 + touch ~/.sql-dk/environment.sh
1.12 + # link/copy support files for configuration:
1.13 + [ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
1.14 + [ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
1.15 + [ -f ~/.sql-dk/config.xsl ] || gunzip < /usr/share/doc/sql-dk/config.xsl.gz > ~/.sql-dk/config.xsl # might not work in www browser if just symlinked
1.16 fi
1.17
1.18 -# link/copy support files for configuration
1.19 -[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
1.20 -[ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
1.21 -[ -f ~/.sql-dk/config.xsl ] || cp /usr/share/doc/sql-dk/config.xsl ~/.sql-dk/config.xsl # might not work in www browser if just symlinked
1.22 -
1.23 -
1.24 # Standard JDBC drivers
1.25 [ -n "$STANDARD_JDBC" ] || STANDARD_JDBC=(
1.26 "/usr/share/java/postgresql-jdbc4.jar"