aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-28 16:15:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-28 16:28:01 +0200
commit140476391c2dd2982a0b0560e5960de8b7231fb1 (patch)
treefdd01637d40c8fd8e2fe60ffd789493705123f0a /build
parent00a3409902646f8c8576ec06eb26243c9cf629f1 (diff)
Clear shell variables before appending
Diffstat (limited to 'build')
-rwxr-xr-xbuild/mysql/mysql3
-rwxr-xr-xbuild/oracle/oracle9
-rwxr-xr-xbuild/pgsql/pgsql3
3 files changed, 14 insertions, 1 deletions
diff --git a/build/mysql/mysql b/build/mysql/mysql
index a6800a0..e91da92 100755
--- a/build/mysql/mysql
+++ b/build/mysql/mysql
@@ -9,6 +9,9 @@
# MySQL driver wrapper.
#
+opt=
+driver=
+
while [ $# -gt 0 ]; do
case $1 in
--driver)
diff --git a/build/oracle/oracle b/build/oracle/oracle
index 4d518fe..e3030d6 100755
--- a/build/oracle/oracle
+++ b/build/oracle/oracle
@@ -9,6 +9,13 @@
# Oracle driver wrapper.
#
+driver=
+user=
+passwd=
+service=
+host=
+port=
+
while [ $# -gt 0 ]; do
case $1 in
--driver)
@@ -65,7 +72,7 @@ elif [ -n "$service" ]; then
conn="$conn@$service"
fi
-opt="-L $opt"
+opt="-L"
if [ -n "$1" ]; then
opt="-S $opt"
diff --git a/build/pgsql/pgsql b/build/pgsql/pgsql
index c1c2482..0f92871 100755
--- a/build/pgsql/pgsql
+++ b/build/pgsql/pgsql
@@ -9,6 +9,9 @@
# PostgreSQL driver wrapper.
#
+driver=
+opt=
+
while [ $# -gt 0 ]; do
case $1 in
--driver)