views:

156

answers:

2

We use Perforce at work, and routinely keep software projects in the repository. In general creators follow the normal Perforce flow, BUT we also have a class of users, who doesn't have any need to edit the files but only read them. Currently we use P4Web but that requires the user so download each file individually to reassemble the project directory. Ideally I would like to have a process where when a user does a commit/submit in Perforce, the script would automatically run to generate a single zip file of the project directory and files, so that it was a one-click download that was guaranteed to be correct against current state of the source files. I know Git has a post-commit hook which could be used for this, but I can't figure out an equivalent function in Perforce.

+3  A: 

Short answer: Yes, read the documentation, page 103.

Here is a link to all of the documentation available from Perforce.

Lyndsey Ferguson
A: 

If they just need read access, then just give them read access in the p4protect table. That way you avoid having to mess around with snapshots of your repository.

Douglas Leeder