File: install.sh

package info (click to toggle)
geany-plugins 1.33%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,120 kB
  • sloc: ansic: 104,481; sh: 4,297; makefile: 1,533; python: 947
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."