TARGET keyword. The ®les in the SOURCE directory are copied to the TARGET path. The target path is derived by concatenating the value of TARGETROOT with a backslash (\), followed by the value of the TARGET keyword speci®ed in the RULE clause.

A RULE clause can also contain one user exit clause: EXITPRIOR, EXITPOST, or EXITREPLACE. For a description of the exit keywords, go to page 212.

The following example copies all *.exe, *.cmd, and *.hlp ®les to target directory f:\demoapp\bin.

(DATA

.

.

(TARGETROOT f:\demoapp )

.

.

(RULE

(SOURCE *.exe *.cmd *.hlp) (TARGET bin )

)

.

.

)

SOURCE <list of ®le speci®cations>

This keyword is required once for each RULE clause. It must be the ®rst keyword within the RULE clause.

This keyword speci®es the ®les to be copied to the path speci®ed by the TARGET keyword. Specify a list of ®le speci®cations separated by blanks. You can use the wildcard characters supported by OS/2 or Windows NT.

The directory from which these ®les are copied depends on how the input ®les are speci®ed in the teamcpak command:

vIf the teamcpak command speci®es a source directory, the ®les speci®ed in the SOURCE keyword come from that directory or subdirectories of it. The full path of the source ®les is constructed by concatenating the directory from the teamcpak command with a backslash (\), followed by the ®le speci®cations found in the SOURCE keyword. You can specify subdirectories in the SOURCE ®le speci®cations.

vIf the teamcpak command speci®es a list of ®les, these ®les are ®rst copied to a temporary directory, then copied from there to the TARGET directories.

In this case, you can use OS/2 or Windows NT wildcards to specify multiple ®le names in the SOURCE ®le speci®cations, but you cannot specify subdirectories.

In the following example, directory d:\demoapp is speci®ed on the teamcpak command:

teamcpak -o "-x -t -m" gather d:\demoapp demoga.pkf

210User's Guide

Page 230
Image 230
IBM SC34-4499-03 manual Source list of le specications