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 12153a331cbc7b4
parent 120 940681695aa4
child 122 0c284726a77d
package and copy XSLT
distributions/debian/build.sh
scripts/sql-dk.sh
     1.1 --- a/distributions/debian/build.sh	Thu Jan 02 21:26:03 2014 +0100
     1.2 +++ b/distributions/debian/build.sh	Thu Jan 02 21:26:50 2014 +0100
     1.3 @@ -25,11 +25,12 @@
     1.4  
     1.5  pushd TMP &&
     1.6  
     1.7 -cp ../../../scripts/sql-dk.sh                     sql-dk &&
     1.8 +cp ../../../scripts/sql-dk.sh                       sql-dk &&
     1.9  cp ../../../xml/config.xsd                          config.xsd &&
    1.10  cp ../../../xml/config.rnc                          config.rnc &&
    1.11 -cp ../../../java/sql-dk/dist/sql-dk.jar           sql-dk.jar &&
    1.12 -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)
    1.13 +cp ../../../xml/config.xsl                          config.xsl &&
    1.14 +cp ../../../java/sql-dk/dist/sql-dk.jar             sql-dk.jar &&
    1.15 +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)
    1.16  
    1.17  chmod 755 sql-dk &&
    1.18  chmod 755 SQL-DK &&
    1.19 @@ -52,7 +53,7 @@
    1.20  Depends: java7-runtime-headless | java7-runtime
    1.21  Suggests: libpostgresql-jdbc-java,libmysql-java
    1.22  Copyright: $COPYRIGHT_FILE
    1.23 -Extra-Files: config.xsd, config.rnc
    1.24 +Extra-Files: config.xsd, config.rnc, config.xsl
    1.25  Files: sql-dk /usr/bin/
    1.26   sql-dk.jar /usr/share/sql-dk/
    1.27   SQL-DK /etc/bash_completion.d/
     2.1 --- a/scripts/sql-dk.sh	Thu Jan 02 21:26:03 2014 +0100
     2.2 +++ b/scripts/sql-dk.sh	Thu Jan 02 21:26:50 2014 +0100
     2.3 @@ -4,8 +4,9 @@
     2.4      . ~/.sql-dk/environment.sh
     2.5  fi
     2.6  
     2.7 +[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
     2.8  [ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
     2.9 -[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
    2.10 +[ -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
    2.11  
    2.12  [ -n "$JAR" ] || JAR="/usr/share/sql-dk/sql-dk.jar";
    2.13