-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinstall_plugin.sh
More file actions
executable file
·32 lines (21 loc) · 876 Bytes
/
install_plugin.sh
File metadata and controls
executable file
·32 lines (21 loc) · 876 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
32
#!/bin/bash
########################################################################################################################
# Link QGIS fibre network design plugin to .qgis2/python/plugin directory (with all python deps linked)
########################################################################################################################
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=rivergis
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