#!/bin/sh # --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: bin/sde-package # Copyright (C) 2006 - 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 --- #Alias: pkg #Description: Package related tasks set -e [ -n "$SDEROOT" ] || export SDEROOT=$( cd "${0%/*}/.."; pwd -P ) . $SDEROOT/lib/libsde.in . $SDEROOT/lib/sde-package.in # what action was requested? if [ $# -eq 0 ]; then action="help" else action="$1"; shift fi case "$action" in help|--help) . $SDEROOT/lib/sde-help.in help_command package ;; up|update) . $SDEROOT/lib/sde-package/update.in package_update "$@" ;; new) . $SDEROOT/lib/sde-package/new.in package_new "$@" ;; *) . $SDEROOT/lib/sde-help.in echo_warning "'$COLOR_MESSAGE$action$COLOR_NORMAL' not understood by the" \ "$COLOR_MESSAGE$module$COLOR_NORMAL module" help_command package exit 1 ;; esac