summaryrefslogtreecommitdiff
path: root/setup-plugins-env.sh
blob: 26c81ec8e634c5c3c3da2f074cac9bb2b0a330d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

unset GRL_PLUGIN_PATH

plugin_dir=src

echo "Scanning directory '$plugin_dir' for plugins...."
PLUGINS=`find $plugin_dir -type d | grep .libs | sort -r`
for p in $PLUGINS; do
  pname=`expr $p : '.*/\(.*\)/.*'`
  echo "  Found plugin:" $pname
  GRL_PLUGIN_PATH=$GRL_PLUGIN_PATH${GRL_PLUGIN_PATH:+:}$PWD/$p
done

export GRL_PLUGIN_PATH

echo ""
echo "Include this script as source for your current shell or just copy and paste"
echo "the following environment variable definition:"
echo ""

echo "------- 8< ------ 8< ------- 8< -------- 8< ------- 8< ------- 8< ------- 8< -------"
echo export GRL_PLUGIN_PATH=$GRL_PLUGIN_PATH
echo "------- 8< ------ 8< ------- 8< -------- 8< ------- 8< ------- 8< ------- 8< -------"