From 3ba2df3c5333713cda444ecb170de9bc5c76a554 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 12 Feb 2010 15:48:54 +0000 Subject: [PATCH] "add optional rlwrap support" --- h2/h2.sh | 8 +++++++- h2/h2.spec | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/h2/h2.sh b/h2/h2.sh index 0a7e5e8335..c6ad215fb7 100644 --- a/h2/h2.sh +++ b/h2/h2.sh @@ -16,7 +16,13 @@ if [ $# -ge 1 ]; then ;; esac fi -exec @l_prefix@/bin/java \ +wrapper="" +if [ ".$tool" = .Shell ]; then + if [ -x @l_prefix@/bin/rlwrap ]; then + wrapper="@l_prefix@/bin/rlwrap --command-name=h2 --history-filename=$HOME/.h2.shell.history --remember" + fi +fi +exec $wrapper @l_prefix@/bin/java \ -Vsun-jdk \ -cp @l_prefix@/lib/h2/h2.jar \ "org.h2.tools.$tool" \ diff --git a/h2/h2.spec b/h2/h2.spec index abd05769d2..eb85bc4742 100644 --- a/h2/h2.spec +++ b/h2/h2.spec @@ -36,7 +36,7 @@ Class: EVAL Group: RDBMS License: MPL/EPL Version: %{V_vers} -Release: 20100204 +Release: 20100212 # list of sources Source0: http://www.h2database.com/h2-%{V_date}.zip