[p4] Scripting label creation

Stephen Vance steve at vance.com
Wed Apr 9 19:54:49 PDT 2008


If you're satisfied with some default settings, use the 'p4 tag' command.

Or, if you have a good scripting language at your disposal, just do 
something like

p4 label -o newLabel | editLabelDescription | p4 label -i

to avoid temp files. They haven't added a command line option for the 
description on labels like they have on submit.

Steve

Yamuna Ramasubramaniyan wrote:
> 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
>
>   

-- 
Stephen Vance
www.vance.com


More information about the perforce-user mailing list