#!/bin/sh# --- SDE-COPYRIGHT-NOTE-BEGIN ---# This copyright note is auto-generated by ./scripts/Create-CopyPatch.# # Filename: bin/sde-list# Copyright (C) 2007 The OpenSDE Project# # More information can be found in the files COPYING and README.# # This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; version 2 of the License. A copy of the# GNU General Public License can be found in the file COPYING.# --- SDE-COPYRIGHT-NOTE-END --- #Description: generate lists needed by other commands set -e [ -n "$SDEROOT" ] || export SDEROOT=$( cd "${0%/*}/.."; pwd -P ) . $SDEROOT/lib/libsde.in list_usage() {cat <<EOTUsage: sde list [DISCRIMINATOR] [OPTIONS] Valid discrimintors are: * package (pkg) * download Try \`sde help list\` for more details.EOT} option=help # discriminatorif [ $# -gt 0 ]; then option="$1"; shiftfi # multiplexcase "$option" in package|pkg) exec $SDEROOT/bin/sde-list-pkg "$@" ;; download) exec $SDEROOT/bin/sde-list-download "$@" ;; help) list_usage ;; *) echo_error "Unknown discriminator '$option'." list_usage exit 1 ;;esac
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: bin/sde-list
# Copyright (C) 2007 The OpenSDE Project
# More information can be found in the files COPYING and README.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
#Description: generate lists needed by other commands
set -e
[ -n "$SDEROOT" ] ||
export SDEROOT=$( cd "${0%/*}/.."; pwd -P )
. $SDEROOT/lib/libsde.in
list_usage() {
cat <<EOT
Usage: sde list [DISCRIMINATOR] [OPTIONS]
Valid discrimintors are:
* package (pkg)
* download
Try \`sde help list\` for more details.
EOT
}
option=help
# discriminator
if [ $# -gt 0 ]; then
option="$1"; shift
fi
# multiplex
case "$option" in
package|pkg) exec $SDEROOT/bin/sde-list-pkg "$@" ;;
download) exec $SDEROOT/bin/sde-list-download "$@" ;;
help) list_usage ;;
*) echo_error "Unknown discriminator '$option'."
list_usage
exit 1 ;;
esac