# HG changeset patch # User František Kučera # Date 1388694410 -3600 # Node ID 53a331cbc7b4a27132e71c7dbb722a4e7a7d630a # Parent 940681695aa447a581fc24d345a5990168f671b9 package and copy XSLT diff -r 940681695aa4 -r 53a331cbc7b4 distributions/debian/build.sh --- a/distributions/debian/build.sh Thu Jan 02 21:26:03 2014 +0100 +++ b/distributions/debian/build.sh Thu Jan 02 21:26:50 2014 +0100 @@ -25,11 +25,12 @@ pushd TMP && -cp ../../../scripts/sql-dk.sh sql-dk && +cp ../../../scripts/sql-dk.sh sql-dk && cp ../../../xml/config.xsd config.xsd && cp ../../../xml/config.rnc config.rnc && -cp ../../../java/sql-dk/dist/sql-dk.jar sql-dk.jar && -cp ../../../java/sql-dk/dist/bash-completion.sh SQL-DK && # TODO: should be sql-dk – name conflict with sql-dk in /usr/bin/ (equivs bug) +cp ../../../xml/config.xsl config.xsl && +cp ../../../java/sql-dk/dist/sql-dk.jar sql-dk.jar && +cp ../../../java/sql-dk/dist/bash-completion.sh SQL-DK && # TODO: should be sql-dk – name conflict with sql-dk in /usr/bin/ (equivs bug) chmod 755 sql-dk && chmod 755 SQL-DK && @@ -52,7 +53,7 @@ Depends: java7-runtime-headless | java7-runtime Suggests: libpostgresql-jdbc-java,libmysql-java Copyright: $COPYRIGHT_FILE -Extra-Files: config.xsd, config.rnc +Extra-Files: config.xsd, config.rnc, config.xsl Files: sql-dk /usr/bin/ sql-dk.jar /usr/share/sql-dk/ SQL-DK /etc/bash_completion.d/ diff -r 940681695aa4 -r 53a331cbc7b4 scripts/sql-dk.sh --- a/scripts/sql-dk.sh Thu Jan 02 21:26:03 2014 +0100 +++ b/scripts/sql-dk.sh Thu Jan 02 21:26:50 2014 +0100 @@ -4,8 +4,9 @@ . ~/.sql-dk/environment.sh fi +[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd [ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc -[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd +[ -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 [ -n "$JAR" ] || JAR="/usr/share/sql-dk/sql-dk.jar";