5 messages in com.perforce.perforce-user[p4] Perl Scripting question - Exclud...
FromSent OnAttachments
Fawad Khan11 Jul 2003 11:44 
Gunawan, Indra, IG11 Jul 2003 13:06 
Paul Pharr11 Jul 2003 13:28 
Matthew Rice11 Jul 2003 13:29 
Jason Williams11 Jul 2003 13:39 
Subject:[p4] Perl Scripting question - Exclude a sub-directory from changelist info
From:Fawad Khan (Fawa@AirgoNetworks.Com)
Date:07/11/2003 11:44:48 AM
List:com.perforce.perforce-user

We do our nightly builds using a perl script which goes in and checks for any checkins made since the last build and then starts the new build. If no checkins have been made since the last build there is no build.

The way script checks for changes is that it goes through an array of directories and performs 'p4 changes dir_name' command on them. Now here is my problem. In this array of directories I have a directory which has about 5 subdirectories. Out of these five I do not want to check one subdirectory. As of today the way I have defined my array is:

@ dirs = qw (//depot/foo/bar1/..., //depot/foo/bar2/..., //depot/foo/bar3/...);

Now under //depot/foo/bar3 there is a subdirectory, test, that I do not want to check for. Does anyone know a clever way of excluding one of the subdirectories. I can go and explicitly define all the subdirectories under bar3 but that will get me into trouble if there are any new directories are added.

Thanks,