[p4] Need sample script for to create client spec

David Weintraub qazwart at gmail.com
Sat Mar 10 20:12:35 PST 2007


Have you looked at the Administrator's guide? There's a good example
there. Here's a quickie using Unix Hear docs:

p4 client -i <<EOF

Client: $client
Description:  $description
Root: $root
View:
    $view
EOF

Just set the environment variables, $client, $description, $view, and
$root. The only thing you have to watch for is making sure that if
$view is multiple lines, to put a space in front of each line.


On 3/9/07, Helck, Christopher <chelck at ebs.com> wrote:
> Hi,
>
> Does anyone have a sample script that dynamically creates a client spec
> for a user that they'd care to share?
>
> I want something like:
>
> Name = $P4USER + "_" + $HOST + "_xyz"
>
> If ( client spec called $Name does not exist) {
>    create client spec called $Name       # I'll pass in the root and
> view via the command line.
> }
>
> I'm happy with bourne, bash, python, or perl.
>
> Thanks,
> C. Helck
>
>
> Thank you for being part of it.
>
> The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee.  If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system.
>
> EBS Dealing Resources International Limited. Registered address: 2 Broadgate, London EC2M 7UR, United Kingdom. Registered number 2669861.
>
> EBS Dealing Resources, Inc, registered in Delaware. Address: Harborside Financial Center, 1100 Plaza Five, 12th Floor Jersey City, New Jersey 07311-4996 and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
>
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list