Skip to content

Commit 7d224a2

Browse files
committed
Documentation
1 parent 4190445 commit 7d224a2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
#!/bin/bash
2-
# Sample SQL scripting for the Bash and Java v17.
3-
# How to install Kotlin for Linux: sudo snap install --classic kotlin
2+
# Sample SQL scripting for the Bash and Kotlin.
3+
# How to install Kotlin to Ubuntu: sudo snap install --classic kotlin
44

55
set -e
6+
cd $(dirname $0)
7+
version=2.2.224
8+
driver=$HOME/.m2/repository/com/h2database/h2/$version/h2-$version.jar
9+
mvn=../../../../../../mvnw.sh
10+
if [ ! -e "$driver" ]; then
11+
sh $mvn dependency:get -Dartifact=com.h2database:h2:$version
12+
fi
13+
614
ktFile="SqlExecutorKt.kt"
715
ktsFile="${ktFile}s"
8-
916
cp "$ktFile" "$ktsFile"
1017
sed -i '0,/^\/\/KTS\/\//s// /' "$ktsFile"
11-
kotlin -cp ../lib/h2-2.2.224.jar "$ktsFile" "$@"
18+
kotlin -cp $driver "$ktsFile" "$@"
1219
rm "$ktsFile"

0 commit comments

Comments
 (0)