diff options
| author | 2024-12-18 19:12:45 +0000 | |
|---|---|---|
| committer | 2024-12-21 21:42:31 +0000 | |
| commit | 49e52a04e11a63e5db2e36f64ec87c2109172db9 (patch) | |
| tree | b573363fdbddfd106020afc3b14e8f556ba0ccbb /install.sh | |
| parent | ee04a62a1c1215742f352823b761fa03cebf2bf5 (diff) | |
Support installation under /usr/local
Use `PREFIX=/usr/local ETCDIR=$PREFIX/etc ./install.sh'
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 14 |
1 files changed, 9 insertions, 5 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 |
