HOSTFILE="$(mktemp smpitmp-hostfXXXXXX)"
perl -ne 'print "$1\n" if /.*<host.*?id="(.*?)".*?\/>.*/' ${PLATFORM} > ${HOSTFILE}
# put all <cluster tag on its own line.
- python -c '
+ @PYTHON_EXECUTABLE@ -c '
import xml.etree.ElementTree as ET
import sys
import re
m = re.match("^([^-]*?)-([^-]*)$", r)
if m:
for i in range(int(m.group(1)), int(m.group(2))):
- print "{}{}{}".format(prefix, i, suffix)
+ print(prefix + str(i) + suffix)
else:
- print "{}{}{}".format(prefix, r, suffix)
+ print(prefix + r + suffix)
' < ${PLATFORM} >> ${HOSTFILE}
fi
UNROLLEDHOSTFILETMP=0