summaryrefslogtreecommitdiff
path: root/bin/after-install
diff options
context:
space:
mode:
Diffstat (limited to 'bin/after-install')
-rwxr-xr-xbin/after-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/after-install b/bin/after-install
new file mode 100755
index 00000000..10857314
--- /dev/null
+++ b/bin/after-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+inkscape_dir="$(inkscape --system-data-directory)"
+
+if [ "$?" != 0 ]; then
+ echo "ERROR: Cannot find inkscape system data directory. Is inkscape installed and in root's PATH?"
+ exit 1
+fi
+
+rm -f "${inkscape_dir}/extensions/inkstitch"
+ln -s /opt/inkstitch "${inkscape_dir}/extensions/inkstitch"