mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added ntfs compression support, still not sure about defaults...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f974cbc10f
commit
421c4e96aa
@ -20,12 +20,23 @@ printhelp(){
|
|||||||
echo "Arguments:"
|
echo "Arguments:"
|
||||||
echo " -h --help - print this help and exit."
|
echo " -h --help - print this help and exit."
|
||||||
echo
|
echo
|
||||||
echo " -bzip2 - use bzip2 to compress (default)."
|
echo " -bz -bzip2 - use bzip2 to compress (default)."
|
||||||
echo " -gzip - use gzip to compress."
|
echo " -gz -gzip - use gzip to compress."
|
||||||
|
echo " -c -compact - use ntfs compression."
|
||||||
echo
|
echo
|
||||||
echo " -ext EXT - set file extension to compress (default: ARW)"
|
echo " -ext EXT - set file extension to compress (default: ARW)"
|
||||||
echo " NOTE: only one -ext is supported now".
|
echo " NOTE: only one -ext is supported now".
|
||||||
echo
|
echo
|
||||||
|
echo "NOTE: not yet sure if to use ntfs compression or bzip2 as default"
|
||||||
|
echo " they both have advantages and disadvantages:"
|
||||||
|
echo " ntfs compression:"
|
||||||
|
echo " + transparent to all apps -- no extra steps needed"
|
||||||
|
echo " - might complicate low level data recovery"
|
||||||
|
echo " - transfers may not be transparent -- actual size vs. disk size"
|
||||||
|
echo " bzip2/gzip/...:"
|
||||||
|
echo " + transparent to file operations and recovery"
|
||||||
|
echo " - requires manual decompression"
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
# process args...
|
# process args...
|
||||||
@ -37,14 +48,19 @@ while true ; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
# archivers...
|
# archivers...
|
||||||
-bzip2)
|
-bz|--bzip2)
|
||||||
ARCH=bzip2 -v \{}
|
ARCH=bzip2 -v \{}
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-gzip)
|
-gz|--gzip)
|
||||||
ARCH=gzip -v \{}
|
ARCH=gzip -v \{}
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-c|--compact)
|
||||||
|
# XXX should we cygpath -w all the inputs???
|
||||||
|
ARCH='compact /c /exe:lzx {}'
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
# extension to compress...
|
# extension to compress...
|
||||||
--ext)
|
--ext)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user