# p4d-watch.cfg -- define events for p4d-watch.pl # # Warning: # Anyone with access to this file has complete, # automatic control of your Perforce installation. # # Warning: # Anyone with access to this file can automatically # modify any file on the network. See p4d-watch.html # # Format: # filespec Type Event args # # Type -- For each file is a changeset # all- generate event for all files that match filespec # once- generate event for first matching files # skip- skip remaining filespecs # # Event args # p4d-newwatch file -- reread cfg file # p4d-protect file -- set p4 protect # p4d-print depotFile@file -- p4 print -q depotFile >file # p4d-group file -- set p4 group # p4-sync host@client@args -- on host, p4 -c client sync args # # $variables for args # $filespec -- filespec that matched a file in the changespec # $depotfile -- the matched file in the changeset # # $Id: //guest/brad_barber/p4d-watch/main/p4d-watch.cfg#3 $ # $Date: 2002/07/09 $$Change: 1940 $$Author: brad_barber $ # Example p4d-watch.cfg # Warning: The following events can modify any file on your network # //app/... skip //product/specs/main/... once p4-sync atlas@road-atlas-www@$filespec //product/... skip //dev/javaspecs/main/... once p4-sync atlas@road-atlas-www@$filespec //qa/web/main/... once p4-sync atlas@road-atlas-www@$filespec //qa/web/version/... once p4-sync atlas@road-atlas-www@$filespec //user/*/main/web/... once p4-sync atlas@road-atlas-www@$filespec //road/web/main/... once p4-sync nibbler@road-nibbler-roadweb@$filespec //road/code/main/scripts/... once p4-sync nibbler@road-nibbler-roadweb@$filespec //road/Perforce/main/protections/... once p4-sync nibbler@road-nibbler-roadweb@$filespec //se/web/main/... once p4-sync 8ball@road-8ball-web@$filespec # Warning: The following events require superuser access to Perforce. # They allow complete control of your Perforce installation # # //road/Perforce/main/protections/group/*.txt all p4d-group $depotfile # //road/Perforce/main/protections/p4d-protect.txt once p4d-protect $depotfile # //road/Perforce/main/triggers/p4d-watch.cfg once p4d-newwatch $depotfile