diff options
| -rwxr-xr-x | install.sh | 14 | ||||
| -rwxr-xr-x | swob.sh | 2 |
2 files changed, 10 insertions, 6 deletions
@@ -1,9 +1,13 @@ #!/bin/sh set -ex -mkdir -p "$DESTDIR"/etc/sway/config.d/ "$DESTDIR"/etc/swob/ +: ${PREFIX=/usr} ${ETCDIR:=/etc} + for i in swayconfig wob.ini; do - install -m 644 swob-$i "$DESTDIR"/etc/swob/$i + install -Dm 644 swob-$i "$DESTDIR$ETCDIR"/swob/$i done -ln -s ../../swob/swayconfig "$DESTDIR"/etc/sway/config.d/swob-swayconfig -install -Dt "$DESTDIR"/usr/bin swob.sh -install -m644 -Dt "$DESTDIR"/usr/share/doc/swob README.md dwl-config.h.patch + +install -d "$DESTDIR$ETCDIR"/sway/config.d/ +ln -s ../../swob/swayconfig "$DESTDIR$ETCDIR"/sway/config.d/swob-swayconfig + +install -Dt "$DESTDIR$PREFIX"/bin swob.sh +install -m644 -Dt "$DESTDIR$PREFIX"/share/doc/swob README.md dwl-config.h.patch @@ -7,7 +7,7 @@ wobfifo=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY.swob wobini= set_wobini() { - for dir in ${XDG_CONFIG_HOME:+"$XDG_CONFIG_HOME"} ~/.config /etc; do + for dir in ${XDG_CONFIG_HOME:+"$XDG_CONFIG_HOME"} ~/.config /etc "${0%/*}"/../etc; do if test -r "$dir"/swob/wob.ini; then wobini=$dir/swob/wob.ini return |
