summaryrefslogtreecommitdiff
path: root/x11-libs/fox-wrapper/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-20 14:27:17 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-20 14:27:17 +0000
commit5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (patch)
tree66e860a5099bcad013f1cf667255dc372a7c11b3 /x11-libs/fox-wrapper/files
parent7218e1b46bceac05841e90472501742d905fb3fc (diff)
gentoo resync : 20.03.2021
Diffstat (limited to 'x11-libs/fox-wrapper/files')
-rw-r--r--x11-libs/fox-wrapper/files/fox-wrapper-2.sh75
1 files changed, 0 insertions, 75 deletions
diff --git a/x11-libs/fox-wrapper/files/fox-wrapper-2.sh b/x11-libs/fox-wrapper/files/fox-wrapper-2.sh
deleted file mode 100644
index 19d09b5b9ca6..000000000000
--- a/x11-libs/fox-wrapper/files/fox-wrapper-2.sh
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# Based on the am-wrapper.sh script (sys-devel/automake-wrapper-1-r1)
-#
-# Executes the correct fox-config version, based on the value of WANT_FOX.
-# All versions of fox after 1.0.x ship with a fox-config script
-#
-#
-# Stable branches first, in descending order, then unstable branches.
-# After a new stable branch, prepend the new version and bump (or remove)
-# the last unstable branch
-#
-vers="1.6 1.4 1.2 1.5"
-bindir=/usr/bin
-
-if [ "${0##*/}" = "fox-wrapper.sh" ] ; then
- echo "fox-wrapper: Don't call this script directly, use fox-config instead" >&2
- exit 1
-fi
-
-if [ -z "${WANT_FOX}" ] ; then
- echo "fox-wrapper: Set the WANT_FOX variable to the desired version of fox, e.g.:" >&2
- echo " WANT_FOX=\"1.2\" fox-config $@"
- exit 1
-fi
-
-for v in ${vers} ; do
- eval binary_${v/./_}="fox-${v}-config"
-done
-
-#
-# Check the WANT_FOX setting
-#
-for v in ${vers} x ; do
- if [ "${v}" = "x" ] ; then
- echo "fox-wrapper: WANT_FOX was set to an invalid version ${WANT_FOX}" >&2
- echo " Valid values of WANT_FOX are: ${vers// /, }"
- exit 1
- fi
-
- if [ "${WANT_FOX}" = "${v}" ] ; then
- binary="binary_${v/./_}"
- binary="${!binary}"
- break
- fi
-done
-
-if [ "${WANT_FOXWRAPPER_DEBUG}" ] ; then
- echo "fox-wrapper: DEBUG: WANT_FOX is set to ${WANT_FOX}" >&2
- echo "fox-wrapper: DEBUG: will execute <$binary>" >&2
-fi
-
-#
-# for further consistency
-#
-for v in ${vers} ; do
- mybin="binary_${v/./_}"
- if [ "${binary}" = "${!mybin}" ] ; then
- export WANT_FOX="${v}"
- fi
-done
-
-#
-# Now try to run the binary
-#
-if [ ! -x "${bindir}/${binary}" ] ; then
- echo "fox-wrapper: $binary is missing or not executable." >&2
- echo " Please try emerging the correct version of fox, i.e.:" >&2
- echo " emerge '=x11-libs/${binary/-config/}*'" >&2
- exit 1
-fi
-
-"$binary" "$@"