File: install.sh

package info (click to toggle)
geany-plugins 1.24%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,532 kB
  • ctags: 10,926
  • sloc: ansic: 89,639; sh: 11,434; python: 1,365; makefile: 1,302
file content (21 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# Script to install GeanyLua in the user's local Geany config directory

PLUGINS_DIR="$HOME/.geany/plugins"
DATA_DIR="$PLUGINS_DIR/geanylua"

PLUGIN="geanylua.so"
LIBRARY="libgeanylua.so"

[ -f "$PLUGIN" ] || PLUGIN=".libs/$PLUGIN"
[ -f "$LIBRARY" ] || LIBRARY=".libs/$LIBRARY"

mkdir -p  "$DATA_DIR" || exit

cp "$PLUGIN" "$PLUGINS_DIR" || exit
cp "$LIBRARY" "$DATA_DIR" || exit
cp -a examples/. "$DATA_DIR/examples" || exit
cp -a docs/. "$DATA_DIR/support" || exit

echo "Installation complete."