Browse Source

* changed bin/sde-download to use a usage function instead of

the deprecated lib/sde-download.hlp


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21596 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
20474a5369
2 changed files with 26 additions and 36 deletions
  1. +26
    -2
      bin/sde-download
  2. +0
    -34
      lib/sde-download.hlp

+ 26
- 2
bin/sde-download

@ -27,6 +27,31 @@ set -e
. $SDEROOT/lib/libsde-ini.in # to write . $SDEROOT/lib/libsde-ini.in # to write
. $SDEROOT/lib/functions.in . $SDEROOT/lib/functions.in
download_usage() {
cat <<EOT
Usage:
sde download <options> [ Package(s) ]
sde download <options> [ Desc file(s) ]
sde download <options> -repository Repositories
sde download <options> [ -all | -required ]
Options is an alias for:
[ -cfg <config> ] [ -nock ] [ -alt-dir <AlternativeDirectory> ]
[ -mirror <URL> | -check ] [ -try-questionable ] [ -notimeout ]
[ -longtimeout ] [ -curl-opt <curl-option>[:<curl-option>[:..]] ]
[ -copy ] [ -move ]
On default, this script auto-detects the best OpenSDE mirror.
Mirrors can also be a local directories in the form of 'file:///<dir>'.
sde download -mk-cksum Filename(s)
sde download [ -list | -list-unknown | -list-missing | -list-cksums ]
See '-mirror none' output for help on bypassing the official mirrors.
EOT
}
umask 022 umask 022
cd "$SDEROOT" cd "$SDEROOT"
@ -807,8 +832,7 @@ case "$1" in
-repository) shift ; repository "$@" ;; -repository) shift ; repository "$@" ;;
-*|"") . $SDEROOT/lib/sde-help.in
help_command download
-*|"") download_usage
exit 1;; exit 1;;
*) packages "$@" ;; *) packages "$@" ;;

+ 0
- 34
lib/sde-download.hlp

@ -1,34 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-download.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 download <options> [ Package(s) ]
sde download <options> [ Desc file(s) ]
sde download <options> -repository Repositories
sde download <options> [ -all | -required ]
Options is an alias for:
[ -cfg <config> ] [ -nock ] [ -alt-dir <AlternativeDirectory> ]
[ -mirror <URL> | -check ] [ -try-questionable ] [ -notimeout ]
[ -longtimeout ] [ -curl-opt <curl-option>[:<curl-option>[:..]] ]
[ -copy ] [ -move ]
On default, this script auto-detects the best OpenSDE mirror.
Mirrors can also be a local directories in the form of 'file:///<dir>'.
sde download -mk-cksum Filename(s)
sde download [ -list | -list-unknown | -list-missing | -list-cksums ]
See '-mirror none' output for help on bypassing the official mirrors.

Loading…
Cancel
Save