This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [JAVA] /bin/sh portability issues in scripts/jar.in


Roger Sayle wrote:
The following patch is the third in the series to allow use of the
native /bin/sh on Solaris/x86. These changes allow Paolo Bonzini's
impressive "jar" script to be used to build libjava on i386-pc-solaris2.10.
Thanks.
The change to the function "copy" replaces the use of the test's "-e"
operator, which isn't available on solaris, with the more portable "-f".
Note that there is another "test -e" a couple of lines below: in fact it is safe to convert the one you changed to "test -f", but not the other one. That one would give a wrong error message if changed. But it is only triggered when there are errors, so we can live with it.
The second change avoid the "mkdir_p: command not found" error messages.
If I get to choose, I'd prefer _mkdir_p.

My 2 cents,

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]