newtar


Purpose
Create a Unix tar archive from a list of files.
Synopsis
procedure newtar(opt:integer,tarfile:text,dir:text, lsf:list of text|string)
procedure newtar(tarfile:text,lsf:list of text|string)
Arguments
opt 
Options:
SYS_NODIR 
Do not store directories (only files)
SYS_DIRONLY 
Store only directories
tarfile 
File name of the archive
dir 
Base directory (default: current directory)
lsf 
List of files to store in the archive (file names are relative to the dir directory)
Example
The following creates an archive of the Xpress installation including only binary files:
findfiles(SYS_RECURS,lsf,getenv("XPRESSDIR"),"bin/*;lib/*;dso/*")
newtar(0,"xpress.tar",getenv("XPRESSDIR"),lsf)
Further information
This implementation processes only regular files and directories: other file types (like links) are silently ignored and not included in the archive.
Related topics
tarlist, newtar
Module
mmsystem


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.