[p4] UNIX dot files into Perforce

Qazwart qazwart at gmail.com
Wed Aug 22 14:29:25 PDT 2007


find . -type f | p4 -x - add

The "find" command will pick up the names of all files -- including  
the "dot" files, but not symbolic links.

To add symbolic links, you do this:

find . -type l | p4 -x - add

See Technote #12 <http://perforce.com/perforce/technotes/note012.html>

On Aug 22, 2007, at 1:41 PM, Thomas.Wielski at sybase.com wrote:

>
> Greetings,
>
> We are archiving some  2Gb of UNIX directories into a Perforce depot.
> There are many directory levels there, many symbolic links and many  
> dot
> files (files whose names begin with a dot), as well as dot  
> directories.
> The problem is how to p4 add all files including these dot files and
> directories  to a changelist while using filespec wildcards, short of
> writing complex UNIX shell scripts that locate them and add them  
> one by
> one..
>
>  "p4 add dir/*/*"  and variations thereof do not pick them up.   I  
> suspect
> there must be a simple answer to this question, but I just haven't  
> stumbled
> upon it.
>
> Thank you in advance,
>
> Thomas Wielski
> Perforce Administrator
> Sybase, Inc
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

David Weintraub
david at weintraub.name
qazwart at gmail.com




More information about the perforce-user mailing list