The trigger server_preop_trig.pl contains two samples which are deactivating the AccuRev Defunct function and disallowing the Keep Function for files associated to Endevor Types which are defined as read-only.
If you are using text files in Endevor which a developer should not update, then Enterprise Sync allows you configures such rules. For example you want to synchronize generated DB2 DCLGEN files to AccuRev, but do not want to allow updates to these generated sources. This trigger verify those configured rules and rejects the Keep command for corresponding read-only files.
$::AccuRev = "C:\\PROGRA~1\\accurev\\bin\\accurev.exe";
# Windows Example $ENV{'HOMEDRIVE'} = "c:"; $ENV{'HOMEPATH'} = "\\Users\\triggeruser";
cd C:\Program Files\AccuRev\storage\depots\MyEnterprise\triggers pl2bat server_preop_trig.pl perl -wc server_preop_trig.pl