[p4] Scripting label creation
Jeff A. Bowles
jab at pobox.com
Tue Apr 29 07:25:54 PDT 2008
Look at "FAQ for integrating Perforce with your build scripts" at
http://public.perforce.com/public/perforce/faq/build.html for some
suggestions.
I would suggest that the "p4 label -o // p4 label -i" mechanism is what you
are looking for, but you will need something like "sed" (a Unix-like string
replacement program) to change the description before feeding to "p4 label
-i".
-Jeff Bowles
On Mon, Apr 28, 2008 at 8:56 PM, Nittin chawala <nittinchawala at yahoo.co.in>
wrote:
> probably if you write a wrapper on label and add your own behaviour for
> this case would be of help.
> Yes you need to script it.
>
> --
> Yamuna Ramasubramaniyan <YRamasubramaniyan at webroot.com> wrote:
> v\:* {behavior:url(#default#VML);} o\:*
> {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape
> {behavior:url(#default#VML);} This brings up the editor and
> thus kills automation.
>
> Thanks,
> Yamuna
>
>
> ---------------------------------
>
> From: Nittin chawala [mailto:nittinchawala at yahoo.co.in]
> Sent: Wednesday, April 09, 2008 11:40 PM
> To: Yamuna Ramasubramaniyan; perforce-user at perforce.com
> Subject: Re: [p4] Scripting label creation
>
>
> there is an option "-t" in label i.e.
>
>
>
> "p4 label -f -t template newlabel"
>
>
>
> probably that can be of help.
>
> ---
> Yamuna Ramasubramaniyan <YRamasubramaniyan at webroot.com> 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 –t 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
>
>
>
> ---------------------------------
>
> Best Jokes, Best Friends, Best Food. Get all this and more on Best of
> Yahoo! Groups.
>
>
>
>
> ---------------------------------
> Unlimited freedom, unlimited storage. Get it now
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
---
Jeff Bowles - jeff.a.bowles at gmail.com
More information about the perforce-user
mailing list