-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b28
-
generic
-
generic
The nightly builds seem to take up an excessive amount of time
creating source bundles. Repeated find commands over the source
tree and using tar to move directories may not be the fastest way
to move bits from one machine ot disk partition to another.
Here are some tips:
If the workspace is up-to-date (workspace updatenames used or the
workspace only gets new files with bringover/putback) then the
nametable is effectively a list of all files SCCS'd into a workspace.
Use this to get a list of all files in a workspace:
cd ${workspace}
cut -d' ' -f1 Codemgr_wsdata/nametable | \
egrep -v '^VERSION' \
egrep -v '^deleted_files' \
egrep -v '^Codemgr_wsdata' > filelist
Then this can be filtered quickly and then used as input to zip:
rm -f -r ${destination}
mkdir ${destination}
(cd ${workspace} ; cat filelist | zip -q ${destination}/allfiles.zip -@ )
(cd ${destination}; unzip -q -u -o allfiles.zip ; rm allfiles.zip)
This use of zip sends compressed bits to the destination disk.
If multiple source bundles are created, they should be created in parallel
if possible.
###@###.### 2005-03-04 17:10:44 GMT
creating source bundles. Repeated find commands over the source
tree and using tar to move directories may not be the fastest way
to move bits from one machine ot disk partition to another.
Here are some tips:
If the workspace is up-to-date (workspace updatenames used or the
workspace only gets new files with bringover/putback) then the
nametable is effectively a list of all files SCCS'd into a workspace.
Use this to get a list of all files in a workspace:
cd ${workspace}
cut -d' ' -f1 Codemgr_wsdata/nametable | \
egrep -v '^VERSION' \
egrep -v '^deleted_files' \
egrep -v '^Codemgr_wsdata' > filelist
Then this can be filtered quickly and then used as input to zip:
rm -f -r ${destination}
mkdir ${destination}
(cd ${workspace} ; cat filelist | zip -q ${destination}/allfiles.zip -@ )
(cd ${destination}; unzip -q -u -o allfiles.zip ; rm allfiles.zip)
This use of zip sends compressed bits to the destination disk.
If multiple source bundles are created, they should be created in parallel
if possible.
###@###.### 2005-03-04 17:10:44 GMT