Converts flat files to versions of ClearCase elements
ClearCase (administrative command)
The clearexport_ffile command processes flat files so that they can be imported into ClearCase elements and/or used to update existing elements. The source data can range from a single file to an entire directory tree.
During the export stage, you invoke clearexport_ffile in the area where the original flat files reside. clearexport_ffile creates a datafile (by default, named cvt_data), which contains descriptions of files and directories. The source-name must be a file or directory in your current working directory, or the current working directory itself.
By default, clearexport_ffile processes every file in the current working directory, including invisible files ( file names that begin with a dot; for example, .login). Be sure to delete superfluous files and directories, such as text-editor backup files, before entering this command.
In the import stage, you invoke clearimport on the datafile to import information into the new VOB. If any of the files to be imported reside in subdirectories below the current working directory, clearimport creates corresponding directory elements.
clearexport_ffile and clearimport use ClearCase magic files to determine which element type to use for each element clearimport creates. For more information on magic files and file typing, see the cc.magic reference page.
NOTE: You cannot run clearexport_ffile on UNIX and then run clearimport on Windows to import the data, or vice-versa. However, you can transfer data in either direction between UNIX and Windows by mounting the UNIX VOB or file-system on your Windows machine and running both clearexport_ffile and clearimport on the Windows machine.
When clearexport_ffile encounters a file or directory that cannot be exported (for example, a file with format problems, or a broken symbolic link), it prints an error and continues. After creating the data file, the command prints a summary of the files and directories that could not be exported.
Permissions Checking: No special permissions required. Locks: No locks apply.
HANDLING OF DIRECTORY ARGUMENTS. Default: If you specify a directory as a source-name argument: (1) clearexport_ffile processes the files in that directory but ignores the contents of the subdirectories; (2) clearimport creates a directory element for source-name and for each of its subdirectories.
STORAGE LOCATION OF DATAFILE. Default: clearexport_ffile creates datafile cvt_data in the current working directory.
SELECTIVE CONVERSION OF FILES. Default: clearexport_ffile converts all files it encounters.
date | := | day-of-week | long-date |
time | := | h[h]:m[m][:s[s]] [UTC [ [ + | - ]h[h][:m[m] ] ] ] |
day-of-week | := | today |yesterday |Sunday | ... |Saturday |Sun | ... |Sat |
long-date | := | d[d]-month[-[yy]yy] |
month | := | January |... |December |Jan |... |Dec |
CREATING NEW VERSIONS ON A BRANCH. Default: clearimport creates new versions of a file or directory element on the element's main branch.
DIRECTORY FOR TEMPORARY FILES. Default: clearexport_ffile uses the value of the TMP environment variable as the directory for temporary files.
SPECIFYING FILES TO BE EXPORTED. Default: clearexport_ffile processes the current working directory (equivalent to specifying "." as the source-name argument). clearexport_ffile processes each file in the current working directory. clearimport creates a directory element for each subdirectory of the current working directory.
|
|
cd \scratch (go to parent of standard directory tree to be converted)
clearexport_ffile -r exper (create the datafile)
VOB directory element ".".
VOB directory element "exper".
Exporting element "exper\ar.c" ...
Extracting element history ...
Completed.
Exporting element ...
Creating element ...
...
Exporting element ...
Creating element ...
Element "exper\util.c" completed.
Creating datafile cvt_data ...
cd \dev
clearexport_ffile -r -b bugfix
cd \dev
clearexport_ffile -r -b bugfix -v \main\v1.0\FCS_VER
clearexport_*, clearimport, events_ccase, relocate
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |