summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-07 22:29:19 -0500
committerJune McEnroe <june@causal.agency>2021-02-07 22:29:19 -0500
commit8fe997d768cd45893b51c91d90ef33cab35b3e9b (patch)
tree32a34931220b02c0bf924eb48febfc7aed2f7f7a
parentAdjust brightness by smaller increments (diff)
downloadsrc-8fe997d768cd45893b51c91d90ef33cab35b3e9b.tar.gz
src-8fe997d768cd45893b51c91d90ef33cab35b3e9b.zip
Add -X flag to install X stuff on OpenBSD
Diffstat (limited to '')
-rw-r--r--install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 39b3380a..e05ea760 100644
--- a/install.sh
+++ b/install.sh
@@ -1,6 +1,14 @@
 #!/bin/sh
 set -eu
 
+X=
+while getopts 'X' opt; do
+	case "$opt" in
+		(X) X=1;;
+		(?) exit 1;;
+	esac
+done
+
 packages='curl htop neovim sl the_silver_searcher tree'
 
 FreeBSD() {
@@ -9,6 +17,7 @@ FreeBSD() {
 
 OpenBSD() {
 	doas pkg_add $packages
+	test $X && doas pkg_add imv scrot xcursor-dmz
 }
 
 Linux() {
-08-29Update to Linux man-pages 5.13 2062.53Štěpán Němec 2021-08-26Update to NetBSD 9.2 2062.52June McEnroe 2021-08-26Support DESTDIR in install/uninstallJune McEnroe 2021-08-26Add version number generatorJune McEnroe 2021-08-22Add ISC license headerJune McEnroe 2021-08-22Update to Linux man-pages 5.12Štěpán Němec 2021-06-21Add manuals for macOS 11.3June McEnroe 2021-05-08Update to OpenBSD 6.9June McEnroe 2021-04-26Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe