1N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1N/A# Use is subject to license terms. 1N/A#ident "%Z%%M% %I% %E% SMI" 1N/A# for an example), a perl build directory and an ON workspace and outputs a ksh 1N/A# script containing the SCCS and Teamware commands necessary to copy the 1N/A# required files from the perl build directory into the ON workspace. Note that 1N/A# the 'sleep 1' commands are because Teamware can't cope with rapid check-ins of 1N/A# large numbers of files. 1N/A# SCCS comment, perl versions. 1N/A qq('5040539 Perl 5.8.4 should be integrated into S10');
1N/A# Cache of already-created directories. 1N/A# Make a directory if it hasn't already been made. 1N/A# Basic sanity checks. 1N/A@
ARGV ==
3 ||
die("Usage is $0 <mapping file> <perl build dir> <workspace>\n");
1N/Adie("$ws is not a workspace\n") if (! -d "$ws/Codemgr_wsdata");
1N/A# Work out directory locations. 1N/A# Read in the mapping file. 1N/A m{["']([^"'\\]*(?:\\.[^"'\\]*)*)["'],?|([^,]+),?|,}g; 1N/A push(@field, undef) if (substr($line, -1, 1) eq ','); 1N/A my $p = shift(@field); 1N/A my $f = shift(@field); 1N/A # We just want the s10 column. 1N/A# Process the mappings. 1N/Aprint("#!/bin/ksh\n\nunalias rm\ntypeset -r comment=$Comment\n", 1N/A "set -ex\nexport CODEMGR_WS=$ws\n\n"); 1N/A # If it is to go into the distrib directory. 1N/A "sccs create $f -y\"\$comment\" )\n"); 1N/A # If it is to go into the arch directory. 1N/A "sccs create $f -y\"\$comment\" )\n"); 1N/A # If it is to be copied forwards from the last version. 1N/A "sccs unedit $f )\n"); 1N/A "sccs create $f -y\"\$comment\" )\n"); 1N/A# Write a fake MANIFEST file, for 'make test'. 1N/A print(($p ne '' ? "$p/" : $p) . $f . "\n") 1N/Aprint("( cd $ver_dst/distrib && sccs create MANIFEST -y\"\$comment\" )\n"); 1N/Aprint("echo SUCCESS\n");