Fix wrapper script to pass command line arguments to xmind
authorChris Reffett <creffett@gentoo.org>
Sat, 21 Nov 2015 00:06:34 +0000 (19:06 -0500)
committerChris Reffett <creffett@gentoo.org>
Sat, 21 Nov 2015 00:06:34 +0000 (19:06 -0500)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563562

app-misc/xmind/files/xmind-wrapper-3.5.3 [new file with mode: 0644]
app-misc/xmind/xmind-3.5.3.201506180105-r1.ebuild [moved from app-misc/xmind/xmind-3.5.3.201506180105.ebuild with 97% similarity]

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 (file)
index 0000000..b38ef14
--- /dev/null
@@ -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 "$@"
similarity index 97%
rename from app-misc/xmind/xmind-3.5.3.201506180105.ebuild
rename to app-misc/xmind/xmind-3.5.3.201506180105-r1.ebuild
index 0dcc285605d4511b4507818f764fd053ca442a8d..ebd1642eb2d6528f169f1a1f55486614ac8ef375 100644 (file)
@@ -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