RFR [9] 8059101: unshuffle_patch.sh should be able to deal with stdin/stdout

Ivan Gerasimov ivan.gerasimov at oracle.com
Thu Sep 25 07:42:16 UTC 2014


Hello!

This is a proposal to enhance the unshuffle_patch.sh script so that it 
will be able to read from stdin and write to stdout.
This would let us use the script in a pipe chain.

For example, the following line could be used to apply a patch directly 
from a remote repository:
wget -q -O - http://path.to.the.raw.patch | bash 
~/jdk9/common/bin/unshuffle_patch.sh jdk - - | hg patch - --no-commit

(Note, that it would only work, if the repository provides the patches 
in the git format, which is not currently the case with 
hg.openjdk.java.net.)

Would you please help review/approve this enhancement?

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8059101
WEBREV: http://cr.openjdk.java.net/~igerasim/8059101/0/webrev/

Sincerely yours,
Ivan



More information about the jdk9-dev mailing list