1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
From: Markus Koschany <apo@debian.org>
Date: Thu, 2 Jan 2025 18:06:56 +0100
Subject: openrefine-bin
Some cosmetic changes and a necessary change to point to refine.ini on Debian
systems.
---
refine | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/refine b/refine
index 66160a6..37fc8b3 100755
--- a/refine
+++ b/refine
@@ -9,7 +9,7 @@
fail () {
cat <<EOF
ERROR: $1
-Type '$0 -h' for usage information.
+Type 'openrefine -h' for usage information.
EOF
exit 1
}
@@ -26,7 +26,7 @@ warn() {
usage() {
cat <<EOF
-Usage: $0 [options] <action>
+Usage: openrefine [options] <action>
Options
-c <path> Path to refine.ini file. Default: ./refine.ini.
-d <path> Path to the data directory. Default: OS dependent.
@@ -221,12 +221,6 @@ dist_prepare() {
fi
}
-tools_prepare() {
- if [ ! -d $REFINE_TOOLS_DIR ] ; then
- mkdir $REFINE_TOOLS_DIR || error "Error while making directory $REFINE_TOOLS_DIR"
- fi
-}
-
mvn_prepare() {
tools_prepare
if [ "$MAVEN_HOME" ] ; then
@@ -588,7 +582,7 @@ done
# -- Read ini file ------------------------------------------------------------
if [ -z $REFINE_INI_PATH ]; then
- REFINE_INI_PATH=refine.ini
+ REFINE_INI_PATH=/etc/openrefine/refine.ini
fi
if [ ! -f "$REFINE_INI_PATH" ]; then
@@ -700,7 +694,7 @@ if [ -z "$REFINE_CLASSES_DIR" ] ; then
fi
if [ -z "$REFINE_LIB_DIR" ] ; then
- REFINE_LIB_DIR="server/target/lib"
+ REFINE_LIB_DIR="server"
fi
if [ -z "$REFINE_BUILD_DIR" ] ; then
|