diff -Naur matapps-utilities-0.2/AUTHORS matapps-utilities-0.2.patched/AUTHORS --- matapps-utilities-0.2/AUTHORS 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/AUTHORS 2011-01-31 15:42:46.000000000 -0500 @@ -0,0 +1,10 @@ +Lindy L. Blackburn +Shourov K. Chatterji (No longer part of the LV Collaboration) +Shantanu Desai (No longer part of the LV Collaboration) +Alexander Dietz +Joseph Romano +Anand Sengupta +Peter Shawhan +Amber Stuver +Keith Thorne +John Whelan diff -Naur matapps-utilities-0.2/changelog matapps-utilities-0.2.patched/changelog --- matapps-utilities-0.2/changelog 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/changelog 2011-02-03 11:05:45.000000000 -0500 @@ -0,0 +1,5 @@ +* Thu Dec 9 2010 Diego Menéndez 0.2 +- Initial version from the MatApps code repository under releases/utilities + +* Tue Dec 7 2010 Diego Menéndez 0.1 +- Partial version from the MatApps code repository under admin/utilities diff -Naur matapps-utilities-0.2/Makefile matapps-utilities-0.2.patched/Makefile --- matapps-utilities-0.2/Makefile 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/Makefile 2011-01-31 15:42:46.000000000 -0500 @@ -0,0 +1,29 @@ +# Makefile for MatApps-Utilities + +MATAPPS_PREFIX=${DESTDIR}/opt/lscsoft/matapps + +utilities_toolboxdir=${MATAPPS_PREFIX}/toolbox/utilities +bindir=${MATAPPS_PREFIX}/bin +utilities_docdir=${DESTDIR}/usr/share/doc/matapps-utilities + +INSTALL=/usr/bin/install +CP=cp -r -T + +all: +clean: + +install: + for i in astro-utils detgeom gps-utils misc plot-utils segments sigmoidfit statistics; do \ + mkdir -p ${utilities_toolboxdir}/$${i}; \ + ${INSTALL} -m 444 $${i}/src/*.m ${utilities_toolboxdir}/$${i}/; \ + done + + -mkdir -p ${bindir} + ${INSTALL} -m 755 matapps_*path ${bindir} + + -mkdir -p ${utilities_docdir} + ${INSTALL} -m 644 AUTHORS changelog README ${utilities_docdir} + for i in astro-utils detgeom gps-utils misc plot-utils segments sigmoidfit statistics; do \ + mkdir -p ${utilities_docdir}/$${i}; \ + ${CP} $${i}/doc/ ${utilities_docdir}/$${i}/; \ + done diff -Naur matapps-utilities-0.2/matapps_addpath matapps-utilities-0.2.patched/matapps_addpath --- matapps-utilities-0.2/matapps_addpath 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/matapps_addpath 2011-01-31 15:42:46.000000000 -0500 @@ -0,0 +1,33 @@ +#!/bin/sh + +MATAPPSROOT='/opt/lscsoft/matapps' + +# Set MatApps module +MODULE='utilities' + +# Avoid updating pathdef.m in the current directory as root +if test 0 -eq `id -u` -a -f pathdef.m +then + echo "`basename $0`: There is a MATLAB search path in the current directory." + exit 3 +fi + +# Confirm access to MATLAB +matlab -e >/dev/null 2>/dev/null +if [ 0 -ne $? ] +then + echo "`basename $0`: Can not reach MATLAB. Is it in my PATH?" + exit 1 +fi + +# Add MatApps module to MATLAB search path +matlab -nodisplay -nojvm << EOF >/dev/null +addpath(genpath(fullfile('$MATAPPSROOT', 'toolbox', '$MODULE')), '-end') +status = savepath; +exit(status) +EOF +if [ 0 -ne $? ] +then + echo "`basename $0`: Unable to update MATLAB search path. Not enough permissions." + exit 2 +fi diff -Naur matapps-utilities-0.2/matapps_rmpath matapps-utilities-0.2.patched/matapps_rmpath --- matapps-utilities-0.2/matapps_rmpath 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/matapps_rmpath 2011-01-31 15:42:46.000000000 -0500 @@ -0,0 +1,33 @@ +#!/bin/sh + +MATAPPSROOT='/opt/lscsoft/matapps'; + +# Set MatApps module +MODULE='utilities' + +# Avoid updating pathdef.m in the current directory as root +if test 0 -eq `id -u` -a -f pathdef.m +then + echo "`basename $0`: There is a MATLAB search path in the current directory." + exit 3 +fi + +# Confirm access to MATLAB +matlab -e >/dev/null 2>/dev/null +if [ 0 -ne $? ] +then + echo "`basename $0`: Can not reach MATLAB. Is it in my PATH?" + exit 1 +fi + +# Remove MatApps module from MATLAB search path +matlab -nodisplay -nojvm << EOF > /dev/null +rmpath(genpath(fullfile('$MATAPPSROOT', 'toolbox', '$MODULE'))) +status = savepath; +exit(status) +EOF +if [ 0 -ne $? ] +then + echo "`basename $0`: Unable to update MATLAB search path. Not enough permissions." + exit 2 +fi diff -Naur matapps-utilities-0.2/README matapps-utilities-0.2.patched/README --- matapps-utilities-0.2/README 1969-12-31 19:00:00.000000000 -0500 +++ matapps-utilities-0.2.patched/README 2011-01-31 15:42:46.000000000 -0500 @@ -0,0 +1,24 @@ +UPDATING THE MATLAB SEARCH PATH SYSTEM-WIDE +------------------------------------------- + +In order to update the MATLAB search path system-wide, two scripts are provided +under /opt/lscsoft/matapps/bin: + +* matapps_addpath: Adds MatApps-Utilities to the MATLAB search path. Once the +MatApps-Utilities package has been installed, matapps_addpath should be run by +the root user. Access to the MATLAB executable (matlab) is required. + +* matapps_rmpath: Removes MatApps-Utilities from the MATLAB search path. Before +uninstalling the MatApps-Utilities package, matapps_rmpath should be run by the +root user. Access to the MATLAB executable (matlab) is required. + +The following is an example of adding MatApps-Utilities to the MATLAB search +path using Bourne shell: + +# PATH=MATLABROOT/bin:$PATH +# /opt/lscsoft/matapps/bin/matapps_addpath + +In order to have more than one version of MATLAB updated on the same computer, +the scripts should be run once for each version changing the PATH variable to +include the MATLABROOT accordingly. This is required only once for each MATLAB +version.