Browse Source

"add optional rlwrap support"

master
parent
commit
3ba2df3c53
  1. 8
      h2/h2.sh
  2. 2
      h2/h2.spec

8
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" \

2
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

Loading…
Cancel
Save