Fixed Linux file globbing in translator Makefile.
Change on 2017/01/09 by tball
@@ -325,6 +325,11 @@ UNUSED_JAR_CONTENTS = \
$(CLASS_DIR)/compiler* \
$(CLASS_DIR)/hook* \
$(CLASS_DIR)/jdt*
+ifeq ($(shell uname), Linux)
+PRUNE_CMD = bash -O globasciiranges -c "rm -rf $(UNUSED_JAR_CONTENTS)"
+else
+PRUNE_CMD = rm -rf $(UNUSED_JAR_CONTENTS)
+endif
default: $(J2OBJC_JAR)
@: # suppress make's "nothing to be done" message
@@ -336,7 +341,7 @@ $(J2OBJC_JAR): $(MANIFEST) $(RESOURCE_FILES) $(JAVA_SOURCES_FULL) \
-d $(CLASS_DIR) -encoding UTF-8 -source 1.8 -target 1.8 -nowarn \
$(JAVA_SOURCES_FULL)
@for lib in $(JAR_DEPS_DIST); do unzip -oq $$lib -d $(CLASS_DIR); done
- @rm -rf $(UNUSED_JAR_CONTENTS)
+ @$(PRUNE_CMD)
@jar cfm $@-combined $(MANIFEST) -C $(CLASS_DIR) .
@java -jar $(JAVA_DEPS_JAR_DIR)/$(JARJAR_JAR) process jarjar.rules $@-combined $@
