Mercurial > forge
view admin/run_forge @ 12665:393b940d7ee2 octave-forge
pq_connection.h: Call register_type() only once.
author | i7tiol |
---|---|
date | Wed, 08 Jul 2015 13:54:27 +0000 |
parents | 185c49a73acc |
children |
line wrap: on
line source
#! /bin/sh # Walk the octave-forge tree (starting in the root) searching for # all the directories that are supposed to be installed. # Add each directory and any data subdirectories to the LOADPATH for octave. # Add any bin directories to the EXEC_PATH. # Add any DLL directories to the system PATH. # Set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH for any .so and .dylib files found. # # You must call this from the root of the octave-forge tree, using, e.g., # admin/run_forge octave --norc -q # # Normally this is called for you, using the run target from make: # make run ROOT=`pwd` BINPATH="$PATH" LDPATH="$LD_LIBRARY_PATH" DYLDPATH="$DYLD_LIBRARY_PATH" OCTPATH="$OCTAVE_PATH:../" # XXX FIXME XXX strictly speaking, the default octave bin directories # should be in the middle of EXECPATH and PATH, but it should be safe # to put them at the end since octave probably isn't overriding anything # on the system. We may also want to pick up the OCTAVE_EXEC_PATH if # there is one. EXECPATH="$PATH:" for f in code/* install/*; do # exclude SVN directories, only include directories, skip NOINSTALL case "$f" in */.svn) ;; *) if test -d $f -a ! -f $f/NOINSTALL; then OCTPATH="$ROOT/$f:$OCTPATH" # if in a package source directory add inst/ src/ if test -d "$f/inst"; then OCTPATH="$ROOT/$f/inst:$OCTPATH"; fi if test -d "$f/src"; then OCTPATH="$ROOT/$f/src:$OCTPATH"; fi # if there is install data, include in on the path if test -d "$f/data"; then OCTPATH="$ROOT/$f/data:$OCTPATH"; fi # make sure we can find supporting binaries if test -d "$f/bin"; then EXECPATH="$ROOT/$f/bin:$EXECPATH"; fi if test -d "$f/scripts"; then EXECPATH="$ROOT/$f/scripts:$EXECPATH"; fi # supporting libraries need to be available as well check=`echo $f/*.dll` if test "$check" != "$f/*.dll"; then BINPATH="$ROOT/$f:$BINPATH"; fi check=`echo $f/*.so` if test "$check" != "$f/*.so"; then LDPATH="$ROOT/$f:$LDPATH"; fi check=`echo $f/*.dylib` if test "$check" != "$f/*.dylib"; then DYLDPATH="$ROOT/$f:$DYLDPATH"; fi fi esac done LD_LIBRARY_PATH="$LDPATH" DYLD_LIBRARY_PATH="$DYLDPATH" PATH="$BINPATH" OCTAVE_LOADPATH="$OCTPATH" OCTAVE_EXEC_PATH="$EXECPATH" export LD_LIBRARY_PATH DYLD_LIBRARY_PATH PATH OCTAVE_LOADPATH OCTAVE_EXEC_PATH $*