Mercurial > octave-nkf
view build-aux/OctJavaQry.java @ 20514:ac0f7acdc3fd
avoid executing startup file twice when using run-octave script (bug #45872)
* site-rcfile: Rename from local-rcfile.
* version-rcfile: Rename from main-rcfile.
* scripts/startup/module.mk: Update to match new names.
(install-startup-files, uninstall-startup-files): Move rules here from
scripts/module.mk.
* site-rcfile, version-rcfile: Note environment variables that may be
used to select site and version rcfiles to execute.
* run-octave.in (OCTAVE_VERSION_INITFILE): Define to use
version-rcfile from source tree.
(OCTAVE_SITE_INITFILE): Update to use site-rcfile from source tree.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 04 Sep 2015 12:45:46 -0400 |
parents | fafd51a1b0f0 |
children |
line wrap: on
line source
// Code used by configure script to locate Java installation variables. // Only compiled code, OctJavaQry.class, is distributed. public class OctJavaQry { public static void main (String[] args) { if (args.length > 0) { if (args[0].equals ("JAVA_HOME")) { System.out.println (System.getProperty ("java.home")); } else if (args[0].equals ("JAVA_LDPATH")) { System.out.println (System.getProperty ("java.library.path")); } else if (args[0].equals ("JAVA_BOOTPATH")) { System.out.println (System.getProperty ("sun.boot.library.path")); } } } }