Browse Source

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

the now deprecated lib/sde-install.hlp


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21599 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 19 years ago
parent
commit
28e4146be2
2 changed files with 9 additions and 19 deletions
  1. +9
    -2
      bin/sde-install
  2. +0
    -17
      lib/sde-install.hlp

+ 9
- 2
bin/sde-install

@ -22,10 +22,17 @@ set -e
. $SDEROOT/lib/libsde.in
install_usage() {
cat <<EOT
Usage: sde install
Installs a symlink of the sde wrapper at \$HOME/bin/,
which is supposed to be on \$PATH
EOT
}
# what action was requested?
if [ $# -ne 0 ]; then
. $SDEROOT/lib/sde-help.in
help_command install
install_usage
elif [ -L "$HOME/bin/sde" ]; then
if [ "$( readlink -f $HOME/bin/sde )" == "$SDEROOT/bin/sde" ]; then
echo_warning "the same sde wrapper is already installed, skip."

+ 0
- 17
lib/sde-install.hlp

@ -1,17 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-install.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 install
Installs a symlink of the sde wrapper at $HOME/bin/,
which is supposed to be on $PATH

Loading…
Cancel
Save