Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 86875e5f16bea6b454c492e84ceda4db > files > 158

coccinelle-examples-0.2.3-0.rc6.3.fc14.x86_64.rpm

// Illustrate the use of virtual rules
//
// Confidence: High
// Copyright: (C) Gilles Muller, Julia Lawall, INRIA, DIKU.  GPLv2.
// Options: some permutation of -D/U p1 -D/U p2

virtual p1, p2

@script:python depends on p1@
@@

print "p1"

@script:python depends on p2@
@@

print "p2"

@script:python depends on p1 && !p2@
@@

print "only p1"

@script:python depends on p2 && !p1@
@@

print "only p2"