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