X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Frestore.in;h=efc320ad7b2330bf0fc1d7e15f375833161765ce;hb=b216fed6340d073d33351145be033ecc5b903c7a;hp=88ab1fa9675530f415cbbfb72c25de84269f3630;hpb=8771e7c56062edf0038e6e3167b6ff9ead2348bd;p=chaz%2Ftar diff --git a/scripts/restore.in b/scripts/restore.in index 88ab1fa..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}" - - - - \ No newline at end of file +# EOF