From 648c24133ae448cae0ccaf8a85a1b18cb5652887 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Jun 2018 17:55:41 +0200 Subject: [PATCH] Remove support for OS X I haven't been using OS X for many years so remove this unused and outdated code and config. --- lib.sh | 3 --- os/darwin/environment.plist | 1 - os/setup.sh | 5 ----- x11/setup.sh | 10 ++++------ 4 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 os/darwin/environment.plist diff --git a/lib.sh b/lib.sh index aa46799..6df5311 100644 --- a/lib.sh +++ b/lib.sh @@ -111,7 +111,6 @@ simple_cpp() { # # - Debian (debian) # - Gentoo (gentoo) -# - Mac OS X (darwin) # - Solaris/OpenSolaris (sun) # - FreeBSD (freebsd) # @@ -121,8 +120,6 @@ os() { echo debian elif test -f /etc/gentoo-release; then echo gentoo - elif test x`uname` = xDarwin; then - echo darwin elif test x`uname` = xSunOS; then echo sun elif test x`uname` = xFreeBSD; then diff --git a/os/darwin/environment.plist b/os/darwin/environment.plist deleted file mode 100644 index 6c87ec5..0000000 --- a/os/darwin/environment.plist +++ /dev/null @@ -1 +0,0 @@ -{ PATH = "/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"; } diff --git a/os/setup.sh b/os/setup.sh index dc3a341..75061c9 100755 --- a/os/setup.sh +++ b/os/setup.sh @@ -23,11 +23,6 @@ set -eu . ../lib.sh -if test x"`os`" = xdarwin; then - # Sets a custom PATH for GUI applications. - mkdir -p ~/.MacOSX - link darwin/environment.plist ~/.MacOSX/environment.plist -fi if test x"`os`" = xdebian; then # Necessary as aptitude rewrites the config file on every start. generate debian/aptitude/config .in cat diff --git a/x11/setup.sh b/x11/setup.sh index a93d357..7dbbce2 100755 --- a/x11/setup.sh +++ b/x11/setup.sh @@ -59,12 +59,10 @@ if installed X; then sed_i 's/^!NO_COMPTON //' Xresources fi - if test ! "x`os`" = xdarwin; then - link xinitrc ~/.xinitrc - # Most display managers use ~/.xsession instead of ~/.xinitrc (which - # is used by e.g. startx). Provide both links. - link xinitrc ~/.xsession - fi + link xinitrc ~/.xinitrc + # Most display managers use ~/.xsession instead of ~/.xinitrc (which + # is used by e.g. startx). Provide both links. + link xinitrc ~/.xsession if test -f xinitrc.local; then link xinitrc.local ~/.xinitrc.local fi -- 2.45.2