11 # Match buildroot/payload paths of the form
12 # /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR
13 # generating a line of the form
14 # python(abi) = MAJOR.MINOR
15 # (Don't match against -config tools e.g. /usr/bin/python2.6-config)
16 grep "/usr/bin/python.\..$" \
17 | sed -e "s|.*/usr/bin/python\(.\..\)|python(abi) = \1|"
21 # Match buildroot paths of the form
22 # /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/ and
23 # /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/
24 # generating (uniqely) lines of the form:
25 # python(abi) = MAJOR.MINOR
26 grep "/usr/lib[^/]*/python.\../.*" \
27 | sed -e "s|.*/usr/lib[^/]*/python\(.\..\)/.*|python(abi) = \1|g" \