[p4] Scripting label creation

Tetrick, Cary ctetrick at midway.com
Thu Apr 10 12:33:34 PDT 2008


I'm doing essentially the same thing (except under Windows / perl).

The only real difference is that I just use simple redirection for the
second label command: 
P4 label -i < temp.file

Apart from that modifying the temp file is the only way I know to avoid
the dialogs.

Cary Tetrick
Software Engineer
Midway Studios, Austin 



-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Yamuna
Ramasubramaniyan
Sent: Wednesday, April 09, 2008 8:43 PM
To: perforce-user at perforce.com
Subject: [p4] Scripting label creation

Hello,

I am trying to script label creation to go along with our daily builds
(I am aware that labeling is wasteful and there are better methods, but
that's for phase II of our build system).  I can't make sense of the p4
label command though.  I'm trying to avoid cat file | p4 label -i, but I
can't seem to find any way around it.

Here's what I have:
P4 label -o TemplateLabel newLabel > temp.file
editlabelDescription(temp.file)    --- I need to store a description of
the label
cat temp.file | p4 label -i

I'm sure there are more elegant solutions, could someone please
enlighten me?  

Thanks,
Yamuna

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list