# HG changeset patch # User Stefan Anzinger # Date 1433480816 -7200 # Node ID 73809f97c2814bab4d9ff78ba00621d832c29197 # Parent 28943e5044b5ba376c7aa530fe91f65c672a3826 Provide a pattern for mktemp (Required on Mac) diff -r 28943e5044b5 -r 73809f97c281 mx/mx_graal_makefile.py --- a/mx/mx_graal_makefile.py Thu Jun 04 19:49:45 2015 -0700 +++ b/mx/mx_graal_makefile.py Fri Jun 05 07:06:56 2015 +0200 @@ -144,7 +144,7 @@ if len(classPath) > 0: mf.add_definition("{depJarsVariable} = {jarDeps}".format(**props)) if shouldExport: mf.add_definition("EXPORTED_FILES += $({name}_JAR)".format(**props)) mf.add_rule("""$({name}_JAR): $({sourcesVariableName}) {annotationProcessors} {depJarsVariableAccess} -\t$(eval TMP := $(shell mktemp -d)) +\t$(eval TMP := $(shell mktemp -d {name}_XXXXX)) \t$(JAVAC) -d $(TMP) {cpAnnotationProcessors} {bootCp} {cpDeps} $({sourcesVariableName}) \t{copyResources} \t$(call process_options,$(TMP),{shouldExport}) @@ -199,7 +199,7 @@ endef define extract = - $(eval TMP := $(shell mktemp -d)) + $(eval TMP := $(shell mktemp -d $(1)_XXXXX)) mkdir -p $(2); cd $(TMP) && $(JAR) xf $(abspath $(1)) && \ ((test ! -d .$(SERVICES_INF) || cp -r .$(SERVICES_INF) $(abspath $(2))) && (test ! -d .$(OPTIONS_INF) || cp -r .$(OPTIONS_INF) $(abspath $(2))))