summaryrefslogtreecommitdiff
path: root/deskutils/docear/files/patch-docear.sh
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2016-04-16 08:47:00 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2016-04-16 08:47:00 +0000
commit97467cb771ce4c4d4e218b75f666b0b5cc401d21 (patch)
tree152b3227efe7fde0f4526e824c9c93fad20c2880 /deskutils/docear/files/patch-docear.sh
parentFix building with iconv on 10.1 at least. (diff)
- Convert in-place patching with sed(1) into already existing patch file
- Do not attempt to create ${STAGEDIR}${DESKTOPDIR}: `share/applications' was added to mtree (Templates/BSD.local.dist) in r331266 2.5 years ago - Turn the first line of pkg-descr into a COMMENT and fix weird Makefile formatting while here
Notes
Notes: svn path=/head/; revision=413419
Diffstat (limited to 'deskutils/docear/files/patch-docear.sh')
-rw-r--r--deskutils/docear/files/patch-docear.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/deskutils/docear/files/patch-docear.sh b/deskutils/docear/files/patch-docear.sh
index ab023b53d50e..8afe4a0e2dab 100644
--- a/deskutils/docear/files/patch-docear.sh
+++ b/deskutils/docear/files/patch-docear.sh
@@ -1,6 +1,21 @@
---- docear.sh 2015-06-10 19:42:49.000000000 +0200
-+++ /tmp/docear.sh.new 2015-06-10 19:41:56.000000000 +0200
-@@ -190,6 +190,7 @@
+--- docear.sh.orig 2015-10-26 17:10:56 UTC
++++ docear.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ # we only want to test the script, not Freeplane itself
+ if ( echo "${DEBUG}" | grep -qe "script" )
+@@ -137,7 +137,7 @@ if [ -x $(which readlink) ] && [ "`echo
+ then # if we have 'readlink' we can use it to get an absolute path
+ # -m should be faster and link does always resolve, else this script
+ # wouldn't be called, would it?
+- freefile=$(readlink -mn "$0")
++ freefile=$(readlink -n "$0")
+ _debug "Link '$0' resolved to '${freefile}'."
+ else
+ freefile="$0"
+@@ -190,6 +190,7 @@ then # non-Sun environments don't work c
fi
_debug "Calling: "\
"${JAVACMD}" -Xmx512m\
@@ -8,7 +23,7 @@
"-Dorg.freeplane.param1=$1"\
"-Dorg.freeplane.param2=$2"\
"-Dorg.freeplane.param3=$3"\
-@@ -204,6 +205,7 @@
+@@ -204,6 +205,7 @@ _debug "Calling: "\
-xargs "${freedir}/init.xargs"
( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start Freeplane
"${JAVACMD}" -Xmx512m\