wok diff xarchive/stuff/slitaz-wrap.sh @ rev 18079

mate-panel: Update (b)deps
author Yuri Pourre <yuripourre@gmail.com>
date Fri May 22 17:40:44 2015 -0300 (2015-05-22)
parents 4a1a5d881605
children 055ed706128d
line diff
     1.1 --- a/xarchive/stuff/slitaz-wrap.sh	Tue Oct 21 12:15:20 2014 +0200
     1.2 +++ b/xarchive/stuff/slitaz-wrap.sh	Fri May 22 17:40:44 2015 -0300
     1.3 @@ -49,6 +49,7 @@
     1.4  _7Z_EXTS="7z bcj bcj2 wim $BZIP2_EXTS $ZIP_EXTS $XZ_EXTS"
     1.5  _7Z_EXTS_X="chm cramfs dmg hfs mbr msi nsis ntfs udf vhd xar arj cab lzh rar \
     1.6  udf cpio $ISO_EXTS $FAT_EXTS $SQUASHFS_EXTS"
     1.7 +ZPAQ_EXTS="zpaq"
     1.8  
     1.9  while read var progs; do
    1.10  	eval $var=""
    1.11 @@ -321,6 +322,7 @@
    1.12  cromfs-driver	$CROMFS_EXTS
    1.13  fs/squashfs/squashfs	$SQUASHFS_EXTS
    1.14  drivers/block/cloop	$CLOOP_EXTS
    1.15 +zpaq		$ZPAQ_EXTS
    1.16  EOT
    1.17  	echo ""
    1.18  	exit
    1.19 @@ -430,6 +432,18 @@
    1.20  /^[\t ]+SymLink -> / { link=$3; attr="l"substr(attr, 2) }
    1.21  /^---/ { display() }
    1.22  '
    1.23 +#  Ver  Date      Time (UT) Attr           Size Ratio  File
    1.24 +# ----- ---------- -------- ------ ------------ ------ ----
    1.25 +# >   1 2012-04-10 11:47:56 100644          576 0.2611 /etc/skel/.profile
    1.26 +	in_exts $ZPAQ_EXTS && zpaq l "$archive" | awku '
    1.27 +/^>/ {
    1.28 +	date=$3
    1.29 +	time=$4
    1.30 +	attr=$5
    1.31 +	size=$6
    1.32 +	name=$8
    1.33 +	display()
    1.34 +}'
    1.35  # Desktop/up -> ..
    1.36  # lrwxrwxrwx     0/0           0       0 ****** -lhd- 0000 2009-05-03 16:59:03 [2]
    1.37  	in_exts $LHA_EXTS && lha v -q -v  "$archive" | awk0 '
    1.38 @@ -472,6 +486,7 @@
    1.39  arj	a		$ARJ_EXTS
    1.40  7zr	a\ -ms=off	$_7Z_EXTS
    1.41  lha	a		$LHA_EXTS
    1.42 +zpaq	a		$ZPAQ_EXTS
    1.43  EOT
    1.44  	;;
    1.45      -r) # remove from archive passed files
    1.46 @@ -489,6 +504,7 @@
    1.47  arj	d	$ARJ_EXTS
    1.48  lha	d	$LHA_EXTS
    1.49  7zr	d	$_7Z_EXTS
    1.50 +zpaq	d	$ZPAQ_EXTS
    1.51  EOT
    1.52  	;;
    1.53      -e) # extract from archive passed files
    1.54 @@ -520,6 +536,7 @@
    1.55  7zr		x\ -y\ -p-	x\ -y		$_7Z_EXTS $_7Z_EXTS_X
    1.56  unace		N/A		x\ -o\ -y	ace
    1.57  cabextract	-q		N/A		cab
    1.58 +zpaq		x		x\ -key		$ZPAQ_EXTS
    1.59  EOT
    1.60  	loop_fs $opt "$@"
    1.61  	;;