File: install.sh

package info (click to toggle)
geany-plugins 2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,832 kB
  • sloc: ansic: 107,883; sh: 5,567; makefile: 1,531; sed: 16
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."