From a5085dee897038a250b1020e47fc0a9f34ab2908 Mon Sep 17 00:00:00 2001 From: knaccc Date: Mon, 14 Jan 2019 18:49:19 +0000 Subject: [PATCH] fixed basedir --- README.md | 3 +++ bin/build-launcher.sh | 2 +- bin/convert-jars-to-modules.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 359d18a..4f8ea4c 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ to build a platform-specific launcher executable. ## Running the launcher +The launcher will need access to the /usr/share/i2p base directory. It will create a .i2p directory for configuration +files in the current user's home directory if it does not already exist. + `target/router/bin/router` ## Check that the I2P router is running and that it is listening for SAM connections diff --git a/bin/build-launcher.sh b/bin/build-launcher.sh index a850ede..c96b40e 100755 --- a/bin/build-launcher.sh +++ b/bin/build-launcher.sh @@ -1,6 +1,6 @@ #!/bin/bash -basedir=`dirname $0`/.. +basedir=$(dirname $(dirname $(readlink -fm $0))) # convert the jar files from an existing I2P built into modules suitable for use with jlink $basedir/bin/convert-jars-to-modules.sh diff --git a/bin/convert-jars-to-modules.sh b/bin/convert-jars-to-modules.sh index f09601d..83a1b88 100755 --- a/bin/convert-jars-to-modules.sh +++ b/bin/convert-jars-to-modules.sh @@ -1,6 +1,6 @@ #!/bin/bash -basedir=`dirname $0`/.. +basedir=$(dirname $(dirname $(readlink -fm $0))) jarPaths=`find $basedir/import/lib -name '*.jar'`