forked from blazek/spline
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall_dev_linux.sh
More file actions
31 lines (21 loc) · 870 Bytes
/
install_dev_linux.sh
File metadata and controls
31 lines (21 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
########################################################################################################################
# Create a symbolic link to the sources in ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins
########################################################################################################################
set -u # Exit if we try to use an uninitialised variable
set -e # Return early if any command returns a non-0 exit status
echo "ADD PLUGIN TO QGIS (dev version -- link)"
PWD=`pwd`
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PLUGIN=spline
SRC=$DIR/$PLUGIN
DEST=~/.local/share/QGIS/QGIS3/profiles/default/python/plugins
DEST_PLUGIN=$DEST/$PLUGIN
if [ ! -d "$SRC" ]; then
echo "Missing directory $SRC"
exit 1
fi
rm -rf $DEST_PLUGIN
ln -s $SRC $DEST_PLUGIN
echo "$DEST_PLUGIN created"
cd $PWD