#!/bin/bash

JAR=../LizardConverter/dist/csvjdbc.jar
SOURCES=$(find src/java/org/relique/ -iname "*.java")
TESTSOURCES=src/java/test/org/relique/jdbc/csv/*.java
TESTDATA=$(find src/testdata -maxdepth 1 -type f -not -name "*~")

tar czf dist/csvjdbc-sources.tar.gz $SOURCES
tar czf dist/csvjdbc-sources-full.tar.gz $SOURCES $TESTSOURCES $TESTDATA
cp $JAR dist/.

#!/bin/bash

JAR=../LizardConverter/dist/csvjdbc.jar
find src/java/org/relique/ -iname "*.java" > sources.txt
cat sources.txt > sources-full.txt
/bin/ls src/java/test/org/relique/jdbc/csv/*.java >> sources-full.txt
find src/testdata -maxdepth 1 -type f -not -name "*~" >> sources-full.txt

tar czf dist/csvjdbc-sources.tar.gz -T sources.txt
tar czf dist/csvjdbc-sources-full.tar.gz -T sources-full.txt
cp $JAR dist/.
/bin/rm sources.txt sources-full.txt


Use temporary files to avoid quoting problems
Use temporary files to avoid quoting problems

Create file lists for tar, to avoid quoting problem with C D.csv
filename containing a space.
