summaryrefslogtreecommitdiff
path: root/x11-apps/xinit/files/chooser.sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-31 21:38:08 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-31 21:38:08 +0000
commitb1d2a7708bd5c6f9626a5f88f8f42cc772feec7e (patch)
treec5430abfc6092a8274b13c3bdddfdee599b62f0c /x11-apps/xinit/files/chooser.sh
parent99e31eb0862b39d83282317c8ebf86e0d96e06cd (diff)
x11-apps/xinit : use ::gentoo ebuild from now on
Diffstat (limited to 'x11-apps/xinit/files/chooser.sh')
-rw-r--r--x11-apps/xinit/files/chooser.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/x11-apps/xinit/files/chooser.sh b/x11-apps/xinit/files/chooser.sh
deleted file mode 100644
index 6cfc5742..00000000
--- a/x11-apps/xinit/files/chooser.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# Author: Martin Schlemmer <azarah@gentoo.org>
-
-# Find a match for $XSESSION in /etc/X11/Sessions
-GENTOO_SESSION=""
-for x in /etc/X11/Sessions/* ; do
- if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" \
- = "`echo ${XSESSION} | awk '{ print toupper($1) }'`" ]; then
- GENTOO_SESSION=${x}
- break
- fi
-done
-
-GENTOO_EXEC=""
-
-if [ -n "${XSESSION}" ]; then
- if [ -f /etc/X11/Sessions/${XSESSION} ]; then
- if [ -x /etc/X11/Sessions/${XSESSION} ]; then
- GENTOO_EXEC="/etc/X11/Sessions/${XSESSION}"
- else
- GENTOO_EXEC="/bin/sh /etc/X11/Sessions/${XSESSION}"
- fi
- elif [ -n "${GENTOO_SESSION}" ]; then
- if [ -x "${GENTOO_SESSION}" ]; then
- GENTOO_EXEC="${GENTOO_SESSION}"
- else
- GENTOO_EXEC="/bin/sh ${GENTOO_SESSION}"
- fi
- else
- x=""
- y=""
-
- for x in "${XSESSION}" \
- "`echo ${XSESSION} | awk '{ print toupper($1) }'`" \
- "`echo ${XSESSION} | awk '{ print tolower($1) }'`"
- do
- # Fall through ...
- if [ -x "`which ${x} 2>/dev/null`" ]; then
- GENTOO_EXEC="`which ${x} 2>/dev/null`"
- break
- fi
- done
- fi
-fi
-
-echo "${GENTOO_EXEC}"
-
-
-# vim:ts=4