FIXME: this has to be split into real commands git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@20977 10447126-35f2-4685-b0cf-6dd780d3921fmisl/sde-wrapper
@ -0,0 +1,47 @@ |
|||
#!/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 |
@ -0,0 +1,33 @@ |
|||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# Filename: lib/sde-package.hlp |
|||
# 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 --- |
|||
|
|||
Usage: sde package <action> <arguments> (Alias: pkg) |
|||
|
|||
update [--location <url>] [<package>] [<version>] (Alias: up) |
|||
Updates a package (which is autodetected if you are on it) to a |
|||
given version, or simply download and regenerate checksums. |
|||
Using --location you are able to specify which will be the new |
|||
download location for this update. |
|||
update [--no-location] --md5 <url> (Alias: up) |
|||
Updates a set of packages based on a remote .md5 file |
|||
Using --no-location you tell the tool to not assume the download |
|||
location of the md5 file for the updates but keep their individual |
|||
download locations. |
|||
|
|||
new [<repository>/]<package> <download> [...] |
|||
Creates a new package based on a template and the given download |
|||
locations. |
|||
new -fm [<repository>/]<package> [<name_at_freshmeat>] |
|||
Creates a new package based on the information available at |
|||
freshmeat <http://freshmeat.net> from it. |