wok annotate xarchive/stuff/tar-wrap.patch @ rev 460
ADD: Xarchive, fuseiso, curlftpfs
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Mar 20 00:22:38 2008 +0100 (2008-03-20) |
parents | |
children |
rev | line source |
---|---|
erjo@460 | 1 --- xarchive-0.2.8-6.ori/wrappers/tar-gnu.src Tue Nov 8 20:50:59 2005 |
erjo@460 | 2 +++ xarchive-0.2.8-6/wrappers/tar-gnu.src Tue Mar 11 23:28:34 2008 |
erjo@460 | 3 @@ -1,4 +1,4 @@ |
erjo@460 | 4 -#! /path/to/bash |
erjo@460 | 5 +#! /bin/bash |
erjo@460 | 6 # tar-wrap.sh - bash tar wrapper for xarchive frontend |
erjo@460 | 7 # Copyright (C) 2005 Lee Bigelow <ligelowbee@yahoo.com> |
erjo@460 | 8 # |
erjo@460 | 9 @@ -54,14 +54,14 @@ |
erjo@460 | 10 if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then |
erjo@460 | 11 DECOMPRESS="gzip -dc" |
erjo@460 | 12 COMPRESS="gzip -c" |
erjo@460 | 13 - TAR_COMPRESS_OPT="--use-compress-prog=gzip" |
erjo@460 | 14 + TAR_COMPRESS_OPT="z" |
erjo@460 | 15 fi |
erjo@460 | 16 done |
erjo@460 | 17 for ext in $BZIP2_EXTS; do |
erjo@460 | 18 if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then |
erjo@460 | 19 DECOMPRESS="bzip2 -dc" |
erjo@460 | 20 COMPRESS="bzip2 -c" |
erjo@460 | 21 - TAR_COMPRESS_OPT="--use-compress-prog=bzip2" |
erjo@460 | 22 + TAR_COMPRESS_OPT="j" |
erjo@460 | 23 fi |
erjo@460 | 24 done |
erjo@460 | 25 for ext in $COMPRESS_EXTS; do |
erjo@460 | 26 @@ -76,8 +76,8 @@ |
erjo@460 | 27 # open and extract can use tar's cmd line option |
erjo@460 | 28 # add, new, and remove need to decompress the tar first |
erjo@460 | 29 # do their thing, than recompress the tar. |
erjo@460 | 30 -OPEN_OPTS="$TAR_COMPRESS_OPT -tvf" |
erjo@460 | 31 -EXTRACT_OPTS="$TAR_COMPRESS_OPT -xf" |
erjo@460 | 32 +OPEN_OPTS="tv${TAR_COMPRESS_OPT}f" |
erjo@460 | 33 +EXTRACT_OPTS="-x${TAR_COMPRESS_OPT}f" |
erjo@460 | 34 ADD_OPTS="-rf" |
erjo@460 | 35 NEW_OPTS="-cf" |
erjo@460 | 36 REMOVE_OPTS="--delete -f" |