RFR [9] 8059101: unshuffle_patch.sh should be able to deal with stdin/stdout
Chris Hegarty
chris.hegarty at oracle.com
Thu Sep 25 12:23:17 UTC 2014
On 25 Sep 2014, at 00:42, Ivan Gerasimov <ivan.gerasimov at oracle.com> wrote:
> 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.)
It would be nice to start a thread with ops at o.j.n to request that this be changed.
-Chris.
> 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