summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2015-11-20 19:06:34 -0500
committerChris Reffett <creffett@gentoo.org>2015-11-20 19:06:34 -0500
commit2af4e45b03741e10e5496b09aa4d2e846d950467 (patch)
tree7fb1d64148282fbac0907c28a45da6c76a9a8429 /app-misc
parentdev-java/jmdns: Clean up old. (diff)
downloadgentoo-2af4e45b03741e10e5496b09aa4d2e846d950467.tar.gz
gentoo-2af4e45b03741e10e5496b09aa4d2e846d950467.tar.bz2
gentoo-2af4e45b03741e10e5496b09aa4d2e846d950467.zip
Fix wrapper script to pass command line arguments to xmind
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563562
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/xmind/files/xmind-wrapper-3.5.38
-rw-r--r--app-misc/xmind/xmind-3.5.3.201506180105-r1.ebuild (renamed from app-misc/xmind/xmind-3.5.3.201506180105.ebuild)2
2 files changed, 9 insertions, 1 deletions
diff --git a/app-misc/xmind/files/xmind-wrapper-3.5.3 b/app-misc/xmind/files/xmind-wrapper-3.5.3
new file mode 100644
index 000000000000..b38ef1476246
--- /dev/null
+++ b/app-misc/xmind/files/xmind-wrapper-3.5.3
@@ -0,0 +1,8 @@
+#!/bin/bash
+#XMind wrapper script, copies configuration stuff into the user's local config dir if either
+#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
+if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
+ mkdir -p ~/.xmind/configuration-cathy
+ cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
+fi
+/opt/xmind/XMind/XMind "$@"
diff --git a/app-misc/xmind/xmind-3.5.3.201506180105.ebuild b/app-misc/xmind/xmind-3.5.3.201506180105-r1.ebuild
index 0dcc285605d4..ebd1642eb2d6 100644
--- a/app-misc/xmind/xmind-3.5.3.201506180105.ebuild
+++ b/app-misc/xmind/xmind-3.5.3.201506180105-r1.ebuild
@@ -64,7 +64,7 @@ src_install() {
fperms a+rx "/opt/xmind/XMind/XMind"
exeinto /opt/bin
- newexe "${FILESDIR}/xmind-wrapper" xmind
+ newexe "${FILESDIR}/xmind-wrapper-3.5.3" xmind
# install icons
local res