CheckIn revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
# This script takes a file mapping CSV file as input (see flist_s10_5-8-4.csv
# for an example), a perl build directory and an ON workspace and outputs a ksh
# script containing the SCCS and Teamware commands necessary to copy the
# required files from the perl build directory into the ON workspace. Note that
# the 'sleep 1' commands are because Teamware can't cope with rapid check-ins of
# large numbers of files.
#
use strict;
use warnings;
# SCCS comment, perl versions.
# Cache of already-created directories.
#
# Make a directory if it hasn't already been made.
#
sub make_dir
{
}
}
#
# Main.
#
# Basic sanity checks.
# Work out directory locations.
# Read in the mapping file.
;
}
my @field;
m{["']([^"'\\]*(?:\\.[^"'\\]*)*)["'],?|([^,]+),?|,}g;
push(@field, undef) if (substr($line, -1, 1) eq ',');
my $p = shift(@field);
my $f = shift(@field);
# We just want the s10 column.
}
close($fh);
# Process the mappings.
my $d = $file{$p}{$f};
# If it is to go into the distrib directory.
"sccs create $f -y\"\$comment\" )\n");
print("sleep 1\n");
# If it is to go into the arch directory.
"sccs create $f -y\"\$comment\" )\n");
print("sleep 1\n");
# If it is to be copied forwards from the last version.
"sccs unedit $f )\n");
"sccs create $f -y\"\$comment\" )\n");
print("sleep 1\n");
}
}
}
# Write a fake MANIFEST file, for 'make test'.
}
}
print("EOF\n");
print("echo SUCCESS\n");