Blue Coat Systems Proxy SG Time Clock User Manual


 
Chapter 1: Overview of Content Policy Language
31
Conditional Compilation
Occasionally, you might be required to maintain policy that can be applied to appliances running
different versions of SGOS and requiring different CPL. CPL provides the following conditional
compilation directive that tests the SGOS version (such as 2.1.06):
release.version= <version number range>
The range is a standard CPL range test: min..max, where both minimum and maximum are optional.
The
min and max can be MAJOR.MINOR.DOT.PATCH, with MINOR, DOT and PATCH optional. Therefore,
rules containing grammar introduced in 2.1.07 can be protected with
#if release.version=2.1.07..
; guarded rules
...
#endif
while grammar introduced in 2.2 can be protected with:
#if release.version=2.2..
; guarded rules
...
#endif