Skip to content

Commit

Permalink
updated patching process to add patch notice on top of files
Browse files Browse the repository at this point in the history
  • Loading branch information
dz333 committed Sep 6, 2018
1 parent 3b55fea commit 37e130e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37e130e

Please sign in to comment.