<s> """<STR_LIT>""" <EOL> __revision__ = "<STR_LIT>" <EOL> import os <EOL> import string <EOL> import posix <EOL> def get_xlc ( env , xlc = None , xlc_r = None , packages = [ ] ) : <EOL> xlcPath = None <EOL> xlcVersion = None <EOL> if xlc is None : <EOL> xlc = env . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if xlc_r is None : <EOL> xlc_r = xlc + '<STR_LIT>' <EOL> for package in packages : <EOL> cmd = "<STR_LIT>" + package + "<STR_LIT>" + xlc + "<STR_LIT>" <EOL> line = os . popen ( cmd ) . readline ( ) <EOL> if line : <EOL> v , p = string . split ( line , '<STR_LIT::>' ) [ <NUM_LIT:1> : <NUM_LIT:3> ] <EOL> xlcVersion = string . split ( v ) [ <NUM_LIT:1> ] <EOL> xlcPath = string . split ( p ) [ <NUM_LIT:0> ] <EOL> xlcPath = xlcPath [ : xlcPath . rindex ( '<STR_LIT:/>' ) ] <EOL> break <EOL> return ( xlcPath , xlc , xlc_r , xlcVersion ) <EOL> def generate ( env ) : <EOL> posix . generate ( env ) <EOL> env [ '<STR_LIT>' ] = <NUM_LIT> </s>
