You can use the p4 label -i option to import a label specification from a text
file. Then you can use the labelsync command to sync the files into that newly
created label.
If you want to lock the label, you can use the p4 label -o option to write out
the label by redirecting it to a file, then use something like sed, perl, etc to
replace unlocked with locked in that file and then use label -i to import the
edited file and that will lock the label.
Thanks,
Rusty
Russell C. Jackson
CM Manager
Symantec Corporation
310-449-4182
Additional contact information:
Cell phone: 805-551-6082
Pager: 310-232-2422
rcjackson at alum.atu.edit
http://www.networkone.net/~rjackson
------Original Message-----
From: Charlie Ruble <charlie at 7thstreet.com>
Sent: Wednesday, April 28, 1999 12:27 PM
To: perforce-user at perforce.com
Subject: Automate Label process
Does anyone know of a way to automate the process of creating a new label
and syncing (Replace files in label with client files) to a certain client
on a daily basis?