summaryrefslogtreecommitdiff
path: root/bin/after-install
blob: 1085731468e3c1911ef8faa787896f3a95997639 (plain)
1
2
3
4
5
6
7
8
9
10
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"