package and copy XSLT v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 02 Jan 2014 21:26:50 +0100
branchv_0
changeset 121 53a331cbc7b4
parent 120 940681695aa4
child 122 0c284726a77d
package and copy XSLT
distributions/debian/build.sh
scripts/sql-dk.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/
--- 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";