23 mkdir -p TMP/usr/share/sql-dk/ && |
23 mkdir -p TMP/usr/share/sql-dk/ && |
24 mkdir -p TMP/etc/bash_completion.d/ && |
24 mkdir -p TMP/etc/bash_completion.d/ && |
25 |
25 |
26 pushd TMP && |
26 pushd TMP && |
27 |
27 |
28 cp ../../../scripts/sql-dk.sh sql-dk && |
28 cp ../../../scripts/sql-dk.sh sql-dk && |
29 cp ../../../xml/config.xsd config.xsd && |
29 cp ../../../xml/config.xsd config.xsd && |
30 cp ../../../xml/config.rnc config.rnc && |
30 cp ../../../xml/config.rnc config.rnc && |
31 cp ../../../xml/config.xsl config.xsl && |
31 cp ../../../xml/config.xsl config.xsl && |
32 cp ../../../java/sql-dk/dist/sql-dk.jar sql-dk.jar && |
32 cp ../../../java/sql-dk/dist/sql-dk.jar sql-dk.jar && |
|
33 cp ../../../java/jdbc-loopback-driver/dist/jdbc-loopback-driver.jar jdbc-loopback-driver.jar && |
33 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) |
34 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) |
34 |
35 |
35 chmod 755 sql-dk && |
36 chmod 755 sql-dk && |
36 chmod 755 SQL-DK && |
37 chmod 755 SQL-DK && |
37 |
38 |
38 EMAIL=`echo c3FsLWRrLmRlYmlhbkBwdWIuZnJhbnRvdm8uY3oK | base64 -d` && |
39 EMAIL=`echo c3FsLWRrLmRlYmlhbkBwdWIuZnJhbnRvdm8uY3oK | base64 -d` && |
39 NAME="Ing. František Kučera <$EMAIL>" && |
40 NAME="Ing. František Kučera <$EMAIL>" && |
40 CONTROL_FILE="equivs-control" && |
41 CONTROL_FILE="equivs-control" && |
41 COPYRIGHT_FILE="copyright" && |
42 COPYRIGHT_FILE="copyright" && |
42 URL="https://sql-dk.globalcode.info/" && |
43 URL="https://sql-dk.globalcode.info/" && |
43 VERSION="0.8" && |
44 VERSION="0.9" && |
44 |
45 |
45 echo "Section: database |
46 echo "Section: database |
46 Priority: optional |
47 Priority: optional |
47 Homepage: $URL |
48 Homepage: $URL |
48 Standards-Version: 3.9.2 |
49 Standards-Version: 3.9.2 |
54 Suggests: libpostgresql-jdbc-java,libmysql-java |
55 Suggests: libpostgresql-jdbc-java,libmysql-java |
55 Copyright: $COPYRIGHT_FILE |
56 Copyright: $COPYRIGHT_FILE |
56 Extra-Files: config.xsd, config.rnc, config.xsl |
57 Extra-Files: config.xsd, config.rnc, config.xsl |
57 Files: sql-dk /usr/bin/ |
58 Files: sql-dk /usr/bin/ |
58 sql-dk.jar /usr/share/sql-dk/ |
59 sql-dk.jar /usr/share/sql-dk/ |
|
60 jdbc-loopback-driver.jar /usr/share/sql-dk/ |
59 SQL-DK /etc/bash_completion.d/ |
61 SQL-DK /etc/bash_completion.d/ |
60 Description: SQL batch client |
62 Description: SQL batch client |
61 SQL-DK is a command-line client for relational databases." > $CONTROL_FILE && |
63 SQL-DK is a command-line client for relational databases." > $CONTROL_FILE && |
62 |
64 |
63 echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
65 echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |