diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2005-02-14 19:04:43 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2005-02-14 19:04:43 +0000 |
commit | 946702f694cf3c8be7f4b22ac444b11161c0ffef (patch) | |
tree | e11682407f945212be8107eb05d817b52e678376 /x11-libs/motif-config/files | |
parent | mask motif-config, work in progress (diff) | |
download | gentoo-2-946702f694cf3c8be7f4b22ac444b11161c0ffef.tar.gz gentoo-2-946702f694cf3c8be7f4b22ac444b11161c0ffef.tar.bz2 gentoo-2-946702f694cf3c8be7f4b22ac444b11161c0ffef.zip |
initial revision
(Portage version: 2.0.51-r15)
Diffstat (limited to 'x11-libs/motif-config/files')
-rw-r--r-- | x11-libs/motif-config/files/digest-motif-config-0.1 | 0 | ||||
-rwxr-xr-x | x11-libs/motif-config/files/motif-config-0.1 | 102 |
2 files changed, 102 insertions, 0 deletions
diff --git a/x11-libs/motif-config/files/digest-motif-config-0.1 b/x11-libs/motif-config/files/digest-motif-config-0.1 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/x11-libs/motif-config/files/digest-motif-config-0.1 diff --git a/x11-libs/motif-config/files/motif-config-0.1 b/x11-libs/motif-config/files/motif-config-0.1 new file mode 100755 index 000000000000..eea80b9fca3f --- /dev/null +++ b/x11-libs/motif-config/files/motif-config-0.1 @@ -0,0 +1,102 @@ +#!/bin/bash +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# based on gcc-config by Martin Schlemmer <azarah@gentoo.org +# Author: Heinrich Wendel <lanius@gentoo.org> + +source /etc/init.d/functions.sh || { + echo "$0: Could not source /etc/init.d/functions.sh!" + exit 1 +} +umask 022 + +PROFILE_PATH=/usr/$(get_libdir)/motif +CONFIG_FILE=${PROFILE_PATH}/current + +usage() { +cat << "USAGE_END" +Usage: motif-config [options] [Profile] +Change the current motif profile, or give info about profiles. + +Options: + + -c, --get-current-profile Print current used motif profile. + + -l, --list-profiles Print a list of available profiles. + + -L, --get-lib-path Print path where libraries of the given/current + profile are located. + + -I, --get-inc-path Print path where includes of the given/current + profile are located. + + --libs Print link flags for the given/current + profile. + + --cflags Print compilation flags for the given/current + profile. + +USAGE_END + exit $1 +} +[[ $# -lt 1 ]] && usage 1 + + +get_current_profile() { + exit 0 +} + +switch_profile() { + exit 0 +} + +list_profiles() { + exit 0 +} + +get_lib_path() { + exit 0 +} + +get_inc_path() { + exit 0 +} + +for x in "$@"; do + case "${x}" in + -l|--list-profiles) + ;; + + -L|--get-lib-path) + ;; + + -I|--get-inc-path) + ;; + + --clfags) + ;; + + --ldflags) + ;; + + -h|--help) + usage 0 + exit 0 + ;; + + -v|--version) + echo "motif-config-1.0" + exit 0 + ;; + + -*) + eerror "$0: Invalid switch! Run $0 without parameters for help." + exit 1 + ;; + + + *) + # switch profile + ;; + esac +done |