Author: Vincent EcuyerDate: 4-Feb-2013File: %tar.r
Creates tar archives.
With one file: write/binary %test.tar tar %my-file.txt With a block of files: write/binary %test.tar tar [%my-file.txt %my-dir/my-file.bmp %just-a-dir/] You can of course gzip the tar (with %gzip.r): do %tar.r do %gzip.r write/binary %test.tgz gzip tar [%some-files ...] Resulting archive is usually smaller than a *.zip of the same files.
With one file:
write/binary %test.tar tar %my-file.txt
With a block of files:
write/binary %test.tar tar [%my-file.txt %my-dir/my-file.bmp %just-a-dir/]
You can of course gzip the tar (with %gzip.r):
do %tar.r do %gzip.r write/binary %test.tgz gzip tar [%some-files ...]
Resulting archive is usually smaller than a *.zip of the same files.
Tested with 7-Zip 9.20 on WindowsXP SP3 and bsdtar 2.6.2 on MacOSX 10.6.8, and works with both REBOL 2 (/Core & /View) and REBOL 3.