11 lines
519 B
Bash
Executable file
11 lines
519 B
Bash
Executable file
#!/bin/sh
|
|
# ./install.sh [DESTDIR] [BINDIR]
|
|
: "${DOTOOL_VERSION=$(git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 1.1)}"
|
|
go build -ldflags "-X main.Version=$DOTOOL_VERSION" || exit
|
|
mkdir -p "$1/${2:-usr/local/bin}" || exit
|
|
cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit
|
|
mkdir -p "$1/etc/udev/rules.d" || exit
|
|
cp -v 80-dotool.rules "$1/etc/udev/rules.d" || exit
|
|
mkdir -p "$1/usr/share/X11/xorg.conf.d" || exit
|
|
cp -v 50-dotool.conf "$1/usr/share/X11/xorg.conf.d" || exit
|
|
udevadm trigger
|