[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
octave_config -p [EXEC_]PREFIX
From: |
John W. Eaton |
Subject: |
octave_config -p [EXEC_]PREFIX |
Date: |
Fri, 27 Apr 2007 10:49:17 -0400 |
On 27-Apr-2007, Javier Fernandez wrote:
| I have just noticed that the command
| octave-config -p PREFIX
| which I used in startup runcommands (to get something such as
| /home/user/octave-2.1.73 for instance) now returns the empty string.
| There is an easy workaround, using EXEC_PREFIX (which returns something
| like /home/user/octave-2.9.10) instead of PREFIX.
Please try the following patch.
Please report bugs to the address@hidden list.
Thanks,
jwe
ChangeLog:
2007-04-27 John W. Eaton <address@hidden>
* octave-config.in: Don't set PREFIX to OCTAVE_HOME if OCTAVE_HOME
is empty.
Index: octave-config.in
===================================================================
RCS file: /cvs/octave/octave-config.in,v
retrieving revision 1.9
diff -u -u -r1.9 octave-config.in
--- octave-config.in 16 Feb 2007 11:14:44 -0000 1.9
+++ octave-config.in 27 Apr 2007 14:48:19 -0000
@@ -69,8 +69,9 @@
OCTINCLUDEDIR="`echo $OCTINCLUDEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
OCTLIBDIR="`echo $OCTLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
STARTUPFILEDIR="`echo $STARTUPFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
+
+ PREFIX="$OCTAVE_HOME"
fi
-PREFIX="$OCTAVE_HOME"
usage_msg="usage: octave-config [options]"