<HTML> <HEAD> <TITLE> Perforce Triggers Examples </TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <CENTER> <P> <A NAME="toc"></A> <h2> <sub><A HREF=http://public.perforce.com/public/index.html>Perforce Public Depot</A></sub><br> Perforce Triggers Examples<br> </H2> <P> <TABLE BORDER=0><TR><TD> <B> <UL> <LI><A HREF="#about">About This Project </A> <LI><A HREF="#triggers">Triggers Scripts </A> </UL> </TABLE> </CENTER> <br> <br> <br> <!------------------------------------------------------------------> <P> <TABLE CELLSPACING=0 BORDER=0 WIDTH=100%><TR><TD BGCOLOR=FFCC66> <A NAME="about"></A> <H2>About This Project </H2> <TD WIDTH=5% BGCOLOR=FFCC66 ALIGN=RIGHT><FONT SIZE="-2"><A HREF="#toc"> Back to<BR>Table of<BR>Contents</A></TD></TR> </TABLE> <!------------------------------------------------------------------> <p> <table cellpadding=5%> <tr> <td valign=top> <b>Content</b> </td> <td valign=top> The "Perforce Triggers Scripts" is a collection of usable scripts that can be used as triggers in a Perforce server. about using (The server needs to be at level '99.1' or later.) </td> </tr> <tr> <td valign=top> <b>Curator</b> </td> <td valign=top> <a href="http://beyond.perforce.com/guest/jeff_bowles/jab.html">Jeff Bowles</a> is the curator of this project. Please contact him if you have any submitted contributions you'd like integrated into the public project branch. </td> </tr> </table> <!------------------------------------------------------------------> <P> <TABLE CELLSPACING=0 BORDER=0 WIDTH=100%><TR><TD BGCOLOR=FFCC66> <A NAME="triggers"></A> <H2>Triggers Scripts </H2> <TD WIDTH=5% BGCOLOR=FFCC66 ALIGN=RIGHT><FONT SIZE="-2"><A HREF="#toc"> Back to<BR>Table of<BR>Contents</A></TD></TR> </TABLE> <!------------------------------------------------------------------> <P> <table border=1> <tr> <td><b>Script Name</b><td><b>Status<sup>*</sup></b><td><center><b>Description</b></center></tr> <tr> <td> <B><A HREF="Jobs.pl"> Jobs.pl </A></B> <td><img src="smiley.gif"> <td> Example trigger to enforce a rule "submissions must be associated with a job.". <tr> <td> <B><A HREF="CheckC.pl"> CheckC.pl </A></B> <td><img src="afraid.gif"> <td> A script to notice when you're creating new files (or integrating to a new branch) and the directory name you're writing the [new] file to isn't the same case as an existing directory name. <p><i>(For example, if "//depot/<u>x</u>/<u>y</u>/z.c" exists, this won't allow you to create a file named "//depot/<u>X</u>/<u>Y</u>/one.c".)</i> <tr> <td> <B><A HREF="Pairs.pl"> Pairs.pl </A></B> <td><img src="smiley.gif"> <td> Example trigger to enforce a rule "files of suffix .x/.y need to be checked in as pairs". <tr> <td> <B><A HREF="Binary.pl"> Binary.pl </A></B> <td><img src="smiley.gif"> <td> Example trigger to enforce a rule "submissions of .gif must binary files and .sh files should be text and...." </table> <p> <sup>*</sup>How to interpret the "Status" field: <ul><li>a smiley face means "it's probably simple enough to use without any worries that it'll corrupt or slow down anything" ; <li>a scared face means "you probably want to read the comments at the top of the script - this might need localization/tailoring or might have performance implications you want to investigate before deploying on your production Perforce server" ; <li>and "under construction" means just that - you can look, you can make copies, but it's getting reworked at the moment. </ul> <br><br><br> <!------------------------------------------------------------------> <P> <TABLE CELLSPACING=0 BORDER=0 WIDTH=100%> <TR> <TD WIDTH=15% BGCOLOR=FFCC66 ALIGN=LEFT VALIGN=CENTER> <FONT SIZE="-2"> Copyright ©<br> 1998, 1999<br> <a href="http://www.perforce.com">Perforce Software</a><br> </FONT> </TD> <TD WIDTH=70% BGCOLOR=FFCC66 ALIGN=CENTER> <FONT SIZE="-2"> You're browsing a file stored as<br> <code>$Id: //public/perforce/triggers/index.html#1 $</code><br> in the <A HREF=http://public.perforce.com/public/index.html>Perforce Public Depot</A>. </FONT> </TD> <TD WIDTH=15% BGCOLOR=FFCC66 ALIGN=RIGHT> <FONT SIZE="-2"><A HREF="#toc"> Back to<BR>Table of<BR>Contents</A></TD></TR> </FONT> </TD> </TR> </TABLE> <!------------------------------------------------------------------> </BODY>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 94 | Laura Wingerd |
Re-org "triggers" directory -- it's now part of the "Perforce Utilities" project. |
||
#1 | 92 | Laura Wingerd | Publishing Jeff's trigger examples | ||
//guest/jeff_bowles/perforce-triggers/index.html | |||||
#1 | 81 | Jeff Bowles | adding some trigger examples.... |