3 ################################################################
5 # Copyright (c) 1995-2014 SUSE Linux Products GmbH
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 2 or 3 as
9 # published by the Free Software Foundation.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program (see the file COPYING); if not, write to the
18 # Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 ################################################################
24 echo "Usage: $(basename $0) [-vq] rpm-files...";
25 echo "Unpack rpm files in current directory.";
29 CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories"
49 test "$VERBOSE" = "true" && CPIO_OPTS="$CPIO_OPTS --verbose"
50 test "$QUIET" = "true" && CPIO_OPTS="$CPIO_OPTS --quiet"
52 test -z "$FILES" && Usage
55 if test "$QUIET" = "false" ; then
58 rpm2cpio $f | cpio ${CPIO_OPTS}