X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Frestore.in;h=efc320ad7b2330bf0fc1d7e15f375833161765ce;hb=78b078b455b834695ebd3104ec3dbe8a4ac9f3a3;hp=c35bdebe7862538fc9b5b3676ddc89d0897ef2cb;hpb=fdbb1d8c7c9db3e82ea2f3aaac6b1d15139b8fc8;p=chaz%2Ftar diff --git a/scripts/restore.in b/scripts/restore.in index c35bdeb..efc320a 100644 --- a/scripts/restore.in +++ b/scripts/restore.in @@ -1,6 +1,6 @@ #! /bin/sh # This program is part of GNU tar -# Copyright 2004, Free Software Foundation +# Copyright (C) 2004, 2006 Free Software Foundation, Inc. # # 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 @@ -14,8 +14,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. # Load library routines SYSCONFDIR=${SYSCONFDIR-@sysconfdir@} @@ -31,9 +31,8 @@ Options are: (default $DUMP_LEVEL). -v, --verbose[=LEVEL] Set verbosity level. Default 100. -Informational options: +Informational options: -h, --help Display this help message. - -L, --license Display program license. -V, --version Display program version. Send bug reports to @PACKAGE_BUGREPORT@. @@ -72,30 +71,28 @@ do ;; -v*) VERBOSE=`expr $option : "-v\(.*\)"`;; -V|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "restore (@PACKAGE@ @VERSION@)" - exit 0;; - -L|--li|--lic|--lice|--licen|--licens|--license) - license - exit;; + echo "restore (@PACKAGE_NAME@) @VERSION@" + license + exit;; -h|--h|--he|--hel|--help) usage exit;; -*) bailout "Unknown option $opt. Try $PROGNAME --help for more info.";; *) if [ -z "$PATTERN" ]; then PATTERN=$opt - else + else PATTERN="$PATTERN|$opt" fi ;; - esac -done + esac +done if [ -z "$RESTORE_ALL" ]; then if [ -z "$PATTERN" ]; then usage exit; fi -fi +fi init_restore cat > $LOGFILE <&1 | tee -a "${LOGFILE}" -# EOF +fi) 2>&1 | tee -a "${LOGFILE}" - - - - +# EOF