aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorLibravatar remph <lhr@disroot.org>2024-10-10 18:03:10 +0100
committerLibravatar remph <lhr@disroot.org>2024-10-10 18:07:49 +0100
commit85ca59aea4669ebb9ca46ff62cf2a4248ec61436 (patch)
treee756e4266e9259a0c86c8e66f3745890793b4128 /install.sh
parent3de3d1e46625a272e8e4e529786573dcbed36ceb (diff)
Init a swob/wob.ini if not present, instead of using a temp file. Also,
dwl config.h
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 4ea365f..8973287 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,9 @@
#!/bin/sh
set -ex
-install -m 644 -Dt "$DESTDIR"/etc/sway/config.d/ swob-swayconfig
-install -D -m 644 swob-wob.ini "$DESTDIR"/etc/swob/wob.ini
+mkdir -p "$DESTDIR"/etc/sway/config.d/ "$DESTDIR"/etc/swob/
+for i in swayconfig wob.ini; do
+ install -m 644 swob-$i "$DESTDIR"/etc/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