From 37e130e81e70268943aff2d6d340d05f19366ece Mon Sep 17 00:00:00 2001 From: dz333 Date: Thu, 6 Sep 2018 18:20:16 -0400 Subject: [PATCH] updated patching process to add patch notice on top of files --- jdk/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jdk/Makefile b/jdk/Makefile index 4ff709f3..d6e0c60f 100644 --- a/jdk/Makefile +++ b/jdk/Makefile @@ -30,7 +30,15 @@ $(SRC): | $(SRC).zip # Path JDK sources to work around JLang unimplemented features. $(SRC)/patchstamp: | $(SRC) @echo "Patching JDK source files" - @for f in `find $(PATCHES) -name "*.patch"`; do patch -p0 < "$$f"; done + @for f in `find $(PATCHES) -name "*.patch"`; do \ + patch -p0 < "$$f"; \ + NEW_FILE=$(SRC)$$(echo "$${f#patches}" | sed "s/patch/java/g"); \ + echo "$$NEW_FILE"; \ + sed "s/XXDATEXX/$$(date +%Y-%m-%d)/g" modification_notice.txt > tmp.txt; \ + cat "$$NEW_FILE" >> tmp.txt; \ + cat tmp.txt > "$$NEW_FILE"; \ + done + @rm -f tmp.txt; @date > $@ $(CLASSES)/cstamp: | $(SRC)