X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Frestore.in;h=efc320ad7b2330bf0fc1d7e15f375833161765ce;hb=78b078b455b834695ebd3104ec3dbe8a4ac9f3a3;hp=5676cf90ea73268f32d229075aa610bdacb962a9;hpb=e86e864544a87003ac900d60135a3ca9424cfb95;p=chaz%2Ftar diff --git a/scripts/restore.in b/scripts/restore.in index 5676cf9..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 @@ -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