mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Don't rely on process substitution
This commit is contained in:
parent
5c4d2dab99
commit
72d684d592
2 changed files with 3 additions and 5 deletions
4
jars.mk
4
jars.mk
|
@ -16,7 +16,9 @@ define build-jar
|
||||||
$$(trace-javac) javac $(GLOBAL_JAVACFLAGS) $$($(1)_JAVACFLAGS) -d $$($(1)_TMPDIR) \
|
$$(trace-javac) javac $(GLOBAL_JAVACFLAGS) $$($(1)_JAVACFLAGS) -d $$($(1)_TMPDIR) \
|
||||||
$$(foreach fn, $$($(1)_SOURCES), '$$(fn)') \
|
$$(foreach fn, $$($(1)_SOURCES), '$$(fn)') \
|
||||||
-cp "$$(subst $$(space),,$$(foreach jar,$$($(1)_JARS),$$($$(jar)_PATH):))$$$$CLASSPATH"
|
-cp "$$(subst $$(space),,$$(foreach jar,$$($(1)_JARS),$$($$(jar)_PATH):))$$$$CLASSPATH"
|
||||||
$$(trace-jar) jar cfm $$($(1)_PATH) <(echo -e '$$(subst $$(newline),\n,$$($(1)_MANIFEST))') -C $$($(1)_TMPDIR) .
|
@echo -e '$$(subst $$(newline),\n,$$($(1)_MANIFEST))' > $$($(1)_PATH).manifest
|
||||||
|
$$(trace-jar) jar cfm $$($(1)_PATH) $$($(1)_PATH).manifest -C $$($(1)_TMPDIR) .
|
||||||
|
@rm $$($(1)_PATH).manifest
|
||||||
@rm -rf $$($(1)_TMPDIR)
|
@rm -rf $$($(1)_TMPDIR)
|
||||||
|
|
||||||
$(1)_INSTALL_DIR ?= $$(jardir)
|
$(1)_INSTALL_DIR ?= $$(jardir)
|
||||||
|
|
4
lib.mk
4
lib.mk
|
@ -14,10 +14,6 @@ dist-files :=
|
||||||
OS = $(shell uname -s)
|
OS = $(shell uname -s)
|
||||||
|
|
||||||
|
|
||||||
# Use bash (required for process substitution in the JAR function).
|
|
||||||
SHELL = bash
|
|
||||||
|
|
||||||
|
|
||||||
# Hack to define a literal space.
|
# Hack to define a literal space.
|
||||||
space :=
|
space :=
|
||||||
space +=
|
space +=
|
||||||
|
|
Loading…
Reference in a new issue