forked from pool/Modules
- complete the move from /usr/Modules to /usr/share/Modules
(bnc#778525) OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=11
This commit is contained in:
parent
d2d7e45428
commit
1632c098d5
@ -1,5 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 10 08:30:51 UTC 2012 - kkaempf@suse.com
|
||||||
|
|
||||||
|
- complete the move from /usr/Modules to /usr/share/Modules
|
||||||
|
(bnc#778525)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 29 20:11:14 UTC 2012 - alinm.elena@gmail.com
|
Wed Aug 29 20:11:14 UTC 2012 - alinm.elena@gmail.com
|
||||||
|
|
||||||
- update to 3.2.9c
|
- update to 3.2.9c
|
||||||
* Fix the coexistence of load/remove flags (Martin Siegert)
|
* Fix the coexistence of load/remove flags (Martin Siegert)
|
||||||
* Fixed an overlapping string copy (Wilson Snyder & Orion Poplawski)
|
* Fixed an overlapping string copy (Wilson Snyder & Orion Poplawski)
|
||||||
@ -10,6 +17,7 @@ Wed Aug 29 20:11:14 UTC 2012 - alinm.elena@gmail.com
|
|||||||
* Added support for Ruby (Tammo Tjarks)
|
* Added support for Ruby (Tammo Tjarks)
|
||||||
- replace defaut in the profile files with the proper version
|
- replace defaut in the profile files with the proper version
|
||||||
- make module files from /etc %config
|
- make module files from /etc %config
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 1 11:19:55 UTC 2011 - coolo@suse.com
|
Thu Dec 1 11:19:55 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
423
share.patch
423
share.patch
@ -1,6 +1,42 @@
|
|||||||
--- a/configure.ac.old 2012-08-29 01:08:43.401494114 +0100
|
diff -wruN -x '*~' ../orig-modules-3.2.9/configure ./configure
|
||||||
+++ b/configure.ac 2012-08-29 01:14:18.310729106 +0100
|
--- ../orig-modules-3.2.9/configure 2011-11-29 16:49:37.000000000 +0100
|
||||||
@@ -110,10 +110,10 @@ must disable with --disable-versioning ]
|
+++ ./configure 2012-09-10 10:12:14.088801974 +0200
|
||||||
|
@@ -1484,9 +1484,9 @@
|
||||||
|
(tclExtend.h,...) [[none]]
|
||||||
|
--with-module-path=<path>
|
||||||
|
use module path=<path>
|
||||||
|
- [[PREFIX/Modules/modulefiles]]
|
||||||
|
+ [[PREFIX/share/Modules/modulefiles]]
|
||||||
|
--with-version-path=<path>
|
||||||
|
- use version path=<path> [[PREFIX/Modules/versions]]
|
||||||
|
+ use version path=<path> [[PREFIX/share/Modules/versions]]
|
||||||
|
--with-tmp-dir=<dir> use <dir> as a temporary dir [[/tmp]]
|
||||||
|
--with-man-path=<dir> use <dir> for the default MANPATH
|
||||||
|
[[/usr/man:/usr/share/man]]
|
||||||
|
@@ -1503,19 +1503,19 @@
|
||||||
|
|
||||||
|
Depending on the above configuration options the files are approximately
|
||||||
|
placed in the following directory structure :
|
||||||
|
-PREFIX/Modules/($MODULES_VERSION/ if modules-versioning)
|
||||||
|
+PREFIX/share/Modules/($MODULES_VERSION/ if modules-versioning)
|
||||||
|
bin/
|
||||||
|
init/
|
||||||
|
man/
|
||||||
|
man1/
|
||||||
|
man4/
|
||||||
|
modulefiles/
|
||||||
|
-PREFIX/Modules/
|
||||||
|
+PREFIX/share/Modules/
|
||||||
|
modulefiles/
|
||||||
|
(versions/ if modules-versioning)
|
||||||
|
|
||||||
|
System modulefiles can safely be placed in:
|
||||||
|
-PREFIX/Modules/modulefiles
|
||||||
|
+PREFIX/share/Modules/modulefiles
|
||||||
|
|
||||||
|
|
||||||
|
Some influential environment variables:
|
||||||
|
@@ -2905,31 +2905,31 @@
|
||||||
fi
|
fi
|
||||||
if test "$prefix" != "NONE" ; then
|
if test "$prefix" != "NONE" ; then
|
||||||
if test "$WANTS_VERSIONING" -eq 1 ; then
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
@ -13,8 +49,15 @@
|
|||||||
+ prefix=$BASEPREFIX/share/Modules/$VERSION
|
+ prefix=$BASEPREFIX/share/Modules/$VERSION
|
||||||
export prefix
|
export prefix
|
||||||
else
|
else
|
||||||
DEFAULTPATH=$prefix/Modules
|
- DEFAULTPATH=$prefix/Modules
|
||||||
@@ -125,10 +125,10 @@ if test "$prefix" != "NONE" ; then
|
- NODEFAULTPATH=$prefix/Modules
|
||||||
|
+ DEFAULTPATH=$prefix/share/Modules
|
||||||
|
+ NODEFAULTPATH=$prefix/share/Modules
|
||||||
|
BASEPREFIX=$prefix
|
||||||
|
- prefix=$BASEPREFIX/Modules
|
||||||
|
+ prefix=$BASEPREFIX/share/Modules
|
||||||
|
export prefix
|
||||||
|
fi
|
||||||
PREFIX=$prefix
|
PREFIX=$prefix
|
||||||
else
|
else
|
||||||
if test "$WANTS_VERSIONING" -eq 1 ; then
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
@ -27,4 +70,372 @@
|
|||||||
+ ac_default_prefix=$BASEPREFIX/share/Modules/$VERSION
|
+ ac_default_prefix=$BASEPREFIX/share/Modules/$VERSION
|
||||||
export ac_default_prefix
|
export ac_default_prefix
|
||||||
else
|
else
|
||||||
DEFAULTPATH=$ac_default_prefix/Modules
|
- DEFAULTPATH=$ac_default_prefix/Modules
|
||||||
|
- NODEFAULTPATH=$ac_default_prefix/Modules
|
||||||
|
+ DEFAULTPATH=$ac_default_prefix/share/Modules
|
||||||
|
+ NODEFAULTPATH=$ac_default_prefix/share/Modules
|
||||||
|
BASEPREFIX=$ac_default_prefix
|
||||||
|
- ac_default_prefix=$BASEPREFIX/Modules
|
||||||
|
+ ac_default_prefix=$BASEPREFIX/share/Modules
|
||||||
|
export ac_default_prefix
|
||||||
|
fi
|
||||||
|
PREFIX=$ac_default_prefix
|
||||||
|
@@ -7462,7 +7462,7 @@
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
else
|
||||||
|
- withval="$BASEPREFIX/Modules/modulefiles"
|
||||||
|
+ withval="$BASEPREFIX/share/Modules/modulefiles"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will use MODULEPATH=$withval : rerun configure using --with-module-path to override default" >&5
|
||||||
|
$as_echo "$as_me: WARNING: will use MODULEPATH=$withval : rerun configure using --with-module-path to override default" >&2;}
|
||||||
|
MODULEPATH="$withval"
|
||||||
|
@@ -7484,7 +7484,7 @@
|
||||||
|
|
||||||
|
else
|
||||||
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
|
- withval="$BASEPREFIX/Modules/versions"
|
||||||
|
+ withval="$BASEPREFIX/share/Modules/versions"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will use VERSIONPATH=$withval : rerun configure using --with-version-path to override default" >&5
|
||||||
|
$as_echo "$as_me: WARNING: will use VERSIONPATH=$withval : rerun configure using --with-version-path to override default" >&2;}
|
||||||
|
VERSIONPATH="$withval"
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/configure.ac ./configure.ac
|
||||||
|
--- ../orig-modules-3.2.9/configure.ac 2011-11-28 23:57:59.000000000 +0100
|
||||||
|
+++ ./configure.ac 2012-09-10 10:12:14.092802142 +0200
|
||||||
|
@@ -110,31 +110,31 @@
|
||||||
|
fi
|
||||||
|
if test "$prefix" != "NONE" ; then
|
||||||
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
|
- DEFAULTPATH=$prefix/Modules/default
|
||||||
|
- NODEFAULTPATH=$prefix/Modules/$VERSION
|
||||||
|
+ DEFAULTPATH=$prefix/share/Modules/default
|
||||||
|
+ NODEFAULTPATH=$prefix/share/Modules/$VERSION
|
||||||
|
BASEPREFIX=$prefix
|
||||||
|
- prefix=$BASEPREFIX/Modules/$VERSION
|
||||||
|
+ prefix=$BASEPREFIX/share/Modules/$VERSION
|
||||||
|
export prefix
|
||||||
|
else
|
||||||
|
- DEFAULTPATH=$prefix/Modules
|
||||||
|
- NODEFAULTPATH=$prefix/Modules
|
||||||
|
+ DEFAULTPATH=$prefix/share/Modules
|
||||||
|
+ NODEFAULTPATH=$prefix/share/Modules
|
||||||
|
BASEPREFIX=$prefix
|
||||||
|
- prefix=$BASEPREFIX/Modules
|
||||||
|
+ prefix=$BASEPREFIX/share/Modules
|
||||||
|
export prefix
|
||||||
|
fi
|
||||||
|
PREFIX=$prefix
|
||||||
|
else
|
||||||
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
|
- DEFAULTPATH=$ac_default_prefix/Modules/default
|
||||||
|
- NODEFAULTPATH=$ac_default_prefix/Modules/$VERSION
|
||||||
|
+ DEFAULTPATH=$ac_default_prefix/share/Modules/default
|
||||||
|
+ NODEFAULTPATH=$ac_default_prefix/share/Modules/$VERSION
|
||||||
|
BASEPREFIX=$ac_default_prefix
|
||||||
|
- ac_default_prefix=$BASEPREFIX/Modules/$VERSION
|
||||||
|
+ ac_default_prefix=$BASEPREFIX/share/Modules/$VERSION
|
||||||
|
export ac_default_prefix
|
||||||
|
else
|
||||||
|
- DEFAULTPATH=$ac_default_prefix/Modules
|
||||||
|
- NODEFAULTPATH=$ac_default_prefix/Modules
|
||||||
|
+ DEFAULTPATH=$ac_default_prefix/share/Modules
|
||||||
|
+ NODEFAULTPATH=$ac_default_prefix/share/Modules
|
||||||
|
BASEPREFIX=$ac_default_prefix
|
||||||
|
- ac_default_prefix=$BASEPREFIX/Modules
|
||||||
|
+ ac_default_prefix=$BASEPREFIX/share/Modules
|
||||||
|
export ac_default_prefix
|
||||||
|
fi
|
||||||
|
PREFIX=$ac_default_prefix
|
||||||
|
@@ -815,13 +815,13 @@
|
||||||
|
AH_TEMPLATE([MODULEPATH],[
|
||||||
|
MODULEPATH: Directory that contains all the system module files])dnl
|
||||||
|
AC_ARG_WITH(module-path,
|
||||||
|
- AC_HELP_STRING([--with-module-path=<path>],[use module path=<path> [[PREFIX/Modules/modulefiles]]]),
|
||||||
|
+ AC_HELP_STRING([--with-module-path=<path>],[use module path=<path> [[PREFIX/share/Modules/modulefiles]]]),
|
||||||
|
MODULEPATH="$withval"
|
||||||
|
AC_MSG_RESULT([MODULEPATH = $with_module_path])
|
||||||
|
AC_DEFINE_UNQUOTED(MODULEPATH, "$withval")dnl
|
||||||
|
,
|
||||||
|
dnl AC_MSG_WARN([if using '--with-module-path': need to specify a path!])
|
||||||
|
- withval="$BASEPREFIX/Modules/modulefiles"
|
||||||
|
+ withval="$BASEPREFIX/share/Modules/modulefiles"
|
||||||
|
AC_MSG_WARN([will use MODULEPATH=$withval : rerun configure using --with-module-path to override default])
|
||||||
|
MODULEPATH="$withval"
|
||||||
|
AC_DEFINE_UNQUOTED(MODULEPATH, "$withval"))dnl
|
||||||
|
@@ -832,14 +832,14 @@
|
||||||
|
AH_TEMPLATE([VERSIONPATH],[
|
||||||
|
VERSIONPATH: Directory that contains the env.modules version files.])dnl
|
||||||
|
AC_ARG_WITH(version-path,
|
||||||
|
- AC_HELP_STRING([--with-version-path=<path>],[use version path=<path> [[PREFIX/Modules/versions]]]),
|
||||||
|
+ AC_HELP_STRING([--with-version-path=<path>],[use version path=<path> [[PREFIX/share/Modules/versions]]]),
|
||||||
|
VERSIONPATH="$withval"
|
||||||
|
AC_MSG_RESULT([VERSIONPATH = $with_version_path])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSIONPATH, "$withval")
|
||||||
|
,
|
||||||
|
if test "$WANTS_VERSIONING" -eq 1 ; then
|
||||||
|
dnl AC_MSG_WARN([if using '--with-version-path': need to specify a path!])
|
||||||
|
- withval="$BASEPREFIX/Modules/versions"
|
||||||
|
+ withval="$BASEPREFIX/share/Modules/versions"
|
||||||
|
AC_MSG_WARN([will use VERSIONPATH=$withval : rerun configure using --with-version-path to override default])
|
||||||
|
VERSIONPATH="$withval"
|
||||||
|
AC_DEFINE_UNQUOTED(VERSIONPATH, "$withval")
|
||||||
|
@@ -960,19 +960,19 @@
|
||||||
|
|
||||||
|
Depending on the above configuration options the files are approximately
|
||||||
|
placed in the following directory structure :
|
||||||
|
-PREFIX/Modules/($MODULES_VERSION/ if modules-versioning)
|
||||||
|
+PREFIX/share/Modules/($MODULES_VERSION/ if modules-versioning)
|
||||||
|
bin/
|
||||||
|
init/
|
||||||
|
man/
|
||||||
|
man1/
|
||||||
|
man4/
|
||||||
|
modulefiles/
|
||||||
|
-PREFIX/Modules/
|
||||||
|
+PREFIX/share/Modules/
|
||||||
|
modulefiles/
|
||||||
|
(versions/ if modules-versioning)
|
||||||
|
|
||||||
|
System modulefiles can safely be placed in:
|
||||||
|
-PREFIX/Modules/modulefiles
|
||||||
|
+PREFIX/share/Modules/modulefiles
|
||||||
|
]])dnl
|
||||||
|
dnl ---------------------------------------------------------------------------
|
||||||
|
dnl Now put it all out!
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/etc/add.modules.in ./etc/add.modules.in
|
||||||
|
--- ../orig-modules-3.2.9/etc/add.modules.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./etc/add.modules.in 2012-09-10 10:19:36.291421512 +0200
|
||||||
|
@@ -144,7 +144,7 @@
|
||||||
|
-zsh|zsh|*/zsh) modules_shell=zsh ;;
|
||||||
|
-bash|bash|*/bash) modules_shell=bash ;;
|
||||||
|
esac
|
||||||
|
-@VERSIONING@module() { eval \`@BASEPREFIX@/Modules/\$MODULE_VERSION/bin/modulecmd \$modules_shell \$*\`; }
|
||||||
|
+@VERSIONING@module() { eval \`@BASEPREFIX@/share/Modules/\$MODULE_VERSION/bin/modulecmd \$modules_shell \$*\`; }
|
||||||
|
@NOTVERSIONING@module() { eval \`@bindir@/modulecmd \$modules_shell \$*\`; }
|
||||||
|
!
|
||||||
|
elif [ x$3 = xcsh ]
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/etc/global/bashrc.in ./etc/global/bashrc.in
|
||||||
|
--- ../orig-modules-3.2.9/etc/global/bashrc.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./etc/global/bashrc.in 2012-09-10 10:20:00.468439340 +0200
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
-zsh|zsh|*/zsh) modules_shell=zsh ;;
|
||||||
|
-bash|bash|*/bash) modules_shell=bash ;;
|
||||||
|
esac
|
||||||
|
-@VERSIONING@eval "module() { eval \`@BASEPREFIX@/Modules\$MODULE_VERSION/bin/modulecmd $modules_shell \$*\`; }"
|
||||||
|
+@VERSIONING@eval "module() { eval \`@BASEPREFIX@/share/Modules\$MODULE_VERSION/bin/modulecmd $modules_shell \$*\`; }"
|
||||||
|
@NOTVERSIONING@eval "module() { eval \`@bindir@/modulecmd $modules_shell \$*\`; }"
|
||||||
|
|
||||||
|
unset modules_shell
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/etc/global/csh.cshrc.in ./etc/global/csh.cshrc.in
|
||||||
|
--- ../orig-modules-3.2.9/etc/global/csh.cshrc.in 2002-06-14 08:15:20.000000000 +0200
|
||||||
|
+++ ./etc/global/csh.cshrc.in 2012-09-10 10:20:08.220765705 +0200
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
set modules_shell="csh"
|
||||||
|
endif
|
||||||
|
|
||||||
|
-@VERSIONING@alias module 'eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
+@VERSIONING@alias module 'eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
@NOTVERSIONING@alias module 'eval `@bindir@/modulecmd '$modules_shell '\!*`'
|
||||||
|
|
||||||
|
unset modules_shell
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/etc/skel/.cshrc.in ./etc/skel/.cshrc.in
|
||||||
|
--- ../orig-modules-3.2.9/etc/skel/.cshrc.in 2002-06-14 08:15:21.000000000 +0200
|
||||||
|
+++ ./etc/skel/.cshrc.in 2012-09-10 10:21:44.688826752 +0200
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
else
|
||||||
|
set modules_shell="csh"
|
||||||
|
endif
|
||||||
|
-@VERSIONING@alias module 'eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
+@VERSIONING@alias module 'eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
@NOTVERSIONING@alias module 'eval `@bindir@/modulecmd '$modules_shell '\!*`'
|
||||||
|
|
||||||
|
if (! $?prompt) exit #exit if not interactive
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/etc/skel/.kshenv.in ./etc/skel/.kshenv.in
|
||||||
|
--- ../orig-modules-3.2.9/etc/skel/.kshenv.in 2002-06-14 08:15:21.000000000 +0200
|
||||||
|
+++ ./etc/skel/.kshenv.in 2012-09-10 10:21:52.657162178 +0200
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
-ksh|ksh|*/ksh) modules_shell=ksh ;;
|
||||||
|
-bash|bash|*/bash) modules_shell=bash ;;
|
||||||
|
esac
|
||||||
|
-@VERSIONING@eval "module() { eval `@BASEPREFIX@/Modules/\$MODULE_VERSION/bin/modulecmd $modules_shell $*`; }"
|
||||||
|
+@VERSIONING@eval "module() { eval `@BASEPREFIX@/share/Modules/\$MODULE_VERSION/bin/modulecmd $modules_shell $*`; }"
|
||||||
|
@NOTVERSIONING@eval "module() { eval `@bindir@/modulecmd $modules_shell $*`; }"
|
||||||
|
|
||||||
|
unset modules_shell
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/ext/common/.cshrc.in ./ext/common/.cshrc.in
|
||||||
|
--- ../orig-modules-3.2.9/ext/common/.cshrc.in 2002-06-14 08:15:21.000000000 +0200
|
||||||
|
+++ ./ext/common/.cshrc.in 2012-09-10 10:21:06.015198726 +0200
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
else
|
||||||
|
set modules_shell="csh"
|
||||||
|
endif
|
||||||
|
-alias module 'eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
+alias module 'eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd '$modules_shell '\!*`'
|
||||||
|
|
||||||
|
if ( -f $HOME/.cshrc.ext ) then
|
||||||
|
source $HOME/.cshrc.ext
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/ext/common/.kshenv.in ./ext/common/.kshenv.in
|
||||||
|
--- ../orig-modules-3.2.9/ext/common/.kshenv.in 2002-06-14 08:15:21.000000000 +0200
|
||||||
|
+++ ./ext/common/.kshenv.in 2012-09-10 10:21:12.871487357 +0200
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
-ksh|ksh|*/ksh) modules_shell=ksh ;;
|
||||||
|
-bash|bash|*/bash) modules_shell=bash ;;
|
||||||
|
esac
|
||||||
|
-module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd $modules_shell $*`; }
|
||||||
|
+module() { eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd $modules_shell $*`; }
|
||||||
|
|
||||||
|
if [ -f ${ENV:-$HOME/.kshenv.ext} ]; then
|
||||||
|
. ${ENV:-$HOME/.kshenv.ext}
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/bash_completion.in ./init/bash_completion.in
|
||||||
|
--- ../orig-modules-3.2.9/init/bash_completion.in 2010-07-27 21:09:06.000000000 +0200
|
||||||
|
+++ ./init/bash_completion.in 2012-09-10 10:22:45.543388781 +0200
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
# Bash commandline completion (bash 3.0 and above) for Modules @VERSION@
|
||||||
|
#
|
||||||
|
_module_avail() {
|
||||||
|
-@VERSIONING@ @BASEPREFIX@/Modules/@VERSION@/bin/modulecmd bash -t avail 2>&1 | sed '
|
||||||
|
+@VERSIONING@ @BASEPREFIX@/share/Modules/@VERSION@/bin/modulecmd bash -t avail 2>&1 | sed '
|
||||||
|
@NOTVERSIONING@ @bindir@/modulecmd bash -t avail 2>&1 | sed '
|
||||||
|
/:$/d;
|
||||||
|
/:ERROR:/d;
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/bash.in ./init/bash.in
|
||||||
|
--- ../orig-modules-3.2.9/init/bash.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/bash.in 2012-09-10 10:24:04.194703624 +0200
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
@VERSIONING@fi
|
||||||
|
@VERSIONING@export MODULE_VERSION_STACK
|
||||||
|
|
||||||
|
-@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd bash $*`; }
|
||||||
|
+@VERSIONING@module() { eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd bash $*`; }
|
||||||
|
@NOTVERSIONING@module() { eval `@bindir@/modulecmd bash $*`; }
|
||||||
|
export -f module
|
||||||
|
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/cmake.in ./init/cmake.in
|
||||||
|
--- ../orig-modules-3.2.9/init/cmake.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/cmake.in 2012-09-10 10:22:52.063663594 +0200
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
@VERSIONING@endif()
|
||||||
|
|
||||||
|
function(module ARGS)
|
||||||
|
-@VERSIONING@ set(exec_prefix "@BASEPREFIX@/Modules/$ENV{MODULE_VERSION}/bin")
|
||||||
|
+@VERSIONING@ set(exec_prefix "@BASEPREFIX@/share/Modules/$ENV{MODULE_VERSION}/bin")
|
||||||
|
|
||||||
|
@NOTVERSIONING@ set(exec_prefix "@bindir@")
|
||||||
|
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/csh.in ./init/csh.in
|
||||||
|
--- ../orig-modules-3.2.9/init/csh.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/csh.in 2012-09-10 10:23:09.980418728 +0200
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
@VERSIONING@ setenv MODULE_VERSION "@VERSION@"
|
||||||
|
@VERSIONING@ setenv MODULE_VERSION_STACK "@VERSION@"
|
||||||
|
@VERSIONING@endif
|
||||||
|
-@VERSIONING@set exec_prefix='@BASEPREFIX@/Modules/$MODULE_VERSION'
|
||||||
|
+@VERSIONING@set exec_prefix='@BASEPREFIX@/share/Modules/$MODULE_VERSION'
|
||||||
|
@NOTVERSIONING@set exec_prefix='@bindir@'
|
||||||
|
|
||||||
|
set prefix=""
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/ksh.in ./init/ksh.in
|
||||||
|
--- ../orig-modules-3.2.9/init/ksh.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/ksh.in 2012-09-10 10:23:19.488819479 +0200
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
@VERSIONING@fi
|
||||||
|
@VERSIONING@export MODULE_VERSION_STACK
|
||||||
|
|
||||||
|
-@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd ksh $*`; }
|
||||||
|
+@VERSIONING@module() { eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd ksh $*`; }
|
||||||
|
@NOTVERSIONING@module() { eval `@bindir@/modulecmd ksh $*`; }
|
||||||
|
|
||||||
|
MODULESHOME=@prefix@
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/.modulespath.in ./init/.modulespath.in
|
||||||
|
--- ../orig-modules-3.2.9/init/.modulespath.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/.modulespath.in 2012-09-10 10:28:34.310087174 +0200
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
# limited by the maximum variable size of your shell.
|
||||||
|
#
|
||||||
|
@VERSIONING@@VERSIONPATH@ # location of version files
|
||||||
|
-@VERSIONING@@BASEPREFIX@/Modules/$MODULE_VERSION/modulefiles # Module pkg modulefiles (if versioning)
|
||||||
|
-@NOTVERSIONING@@BASEPREFIX@/Modules/modulefiles # Module pkg modulefiles (if no versioning)
|
||||||
|
+@VERSIONING@@BASEPREFIX@/share/Modules/$MODULE_VERSION/modulefiles # Module pkg modulefiles (if versioning)
|
||||||
|
+@NOTVERSIONING@@BASEPREFIX@/share/Modules/modulefiles # Module pkg modulefiles (if no versioning)
|
||||||
|
@MODULEPATH@ # General module files
|
||||||
|
#@prefix@/your_contribs # Edit for your requirements
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/perl.pm.in ./init/perl.pm.in
|
||||||
|
--- ../orig-modules-3.2.9/init/perl.pm.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/perl.pm.in 2012-09-10 10:23:23.744998856 +0200
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
|
||||||
|
sub module {
|
||||||
|
local ($exec_prefix);
|
||||||
|
-@VERSIONING@ $exec_prefix = "@BASEPREFIX@/Modules/".$ENV{"MODULE_VERSION"};
|
||||||
|
+@VERSIONING@ $exec_prefix = "@BASEPREFIX@/share/Modules/".$ENV{"MODULE_VERSION"};
|
||||||
|
@VERSIONING@ eval `$exec_prefix/bin/modulecmd perl @_`;
|
||||||
|
|
||||||
|
@NOTVERSIONING@ $exec_prefix = "@bindir@";
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/python.py.in ./init/python.py.in
|
||||||
|
--- ../orig-modules-3.2.9/init/python.py.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/python.py.in 2012-09-10 10:23:32.481367054 +0200
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
args = args[0]
|
||||||
|
else:
|
||||||
|
args = list(args)
|
||||||
|
-@VERSIONING@ (output, error) = subprocess.Popen(['@BASEPREFIX@/Modules/%s/bin/modulecmd' % os.environ['MODULE_VERSION'], 'python'] +
|
||||||
|
+@VERSIONING@ (output, error) = subprocess.Popen(['@BASEPREFIX@/share/Modules/%s/bin/modulecmd' % os.environ['MODULE_VERSION'], 'python'] +
|
||||||
|
@NOTVERSIONING@ (output, error) = subprocess.Popen(['@bindir@/modulecmd', 'python'] +
|
||||||
|
args, stdout=subprocess.PIPE).communicate()
|
||||||
|
exec output
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/ruby.rb.in ./init/ruby.rb.in
|
||||||
|
--- ../orig-modules-3.2.9/init/ruby.rb.in 2011-10-17 18:45:40.000000000 +0200
|
||||||
|
+++ ./init/ruby.rb.in 2012-09-10 10:23:37.937597014 +0200
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
else
|
||||||
|
args = args.join(" ")
|
||||||
|
end
|
||||||
|
-@VERSIONING@ exec_prefix = "@BASEPREFIX@/Modules/#{ENV['MODULE_VERSION']}"
|
||||||
|
+@VERSIONING@ exec_prefix = "@BASEPREFIX@/share/Modules/#{ENV['MODULE_VERSION']}"
|
||||||
|
@VERSIONING@ eval `#{exec_prefix}/bin/modulecmd ruby #{args}`
|
||||||
|
|
||||||
|
@NOTVERSIONING@ exec_prefix = "@bindir@"
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/sh.in ./init/sh.in
|
||||||
|
--- ../orig-modules-3.2.9/init/sh.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/sh.in 2012-09-10 10:23:45.521916658 +0200
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
@VERSIONING@fi
|
||||||
|
@VERSIONING@export MODULE_VERSION_STACK
|
||||||
|
|
||||||
|
-@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd sh $*`; }
|
||||||
|
+@VERSIONING@module() { eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd sh $*`; }
|
||||||
|
@NOTVERSIONING@module() { eval `@bindir@/modulecmd sh $*`; }
|
||||||
|
|
||||||
|
MODULESHOME=@prefix@
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/init/zsh.in ./init/zsh.in
|
||||||
|
--- ../orig-modules-3.2.9/init/zsh.in 2010-11-11 19:23:18.000000000 +0100
|
||||||
|
+++ ./init/zsh.in 2012-09-10 10:23:53.082235275 +0200
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
@VERSIONING@fi
|
||||||
|
@VERSIONING@export MODULE_VERSION_STACK
|
||||||
|
|
||||||
|
-@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd zsh $*`; }
|
||||||
|
+@VERSIONING@module() { eval `@BASEPREFIX@/share/Modules/$MODULE_VERSION/bin/modulecmd zsh $*`; }
|
||||||
|
@NOTVERSIONING@module() { eval `@bindir@/modulecmd zsh $*`; }
|
||||||
|
|
||||||
|
MODULESHOME=@prefix@
|
||||||
|
diff -wruN -x '*~' ../orig-modules-3.2.9/INSTALL ./INSTALL
|
||||||
|
--- ../orig-modules-3.2.9/INSTALL 2006-01-12 20:14:24.000000000 +0100
|
||||||
|
+++ ./INSTALL 2012-09-10 10:12:14.056800627 +0200
|
||||||
|
@@ -103,7 +103,7 @@
|
||||||
|
your system root, else it may get wiped out with every OS upgrade.
|
||||||
|
The default is /usr/local/Modules/modulefiles/. You will use the
|
||||||
|
--with-module-path=<path> option to the configure script to set this
|
||||||
|
-directory. The default is $prefix/Modules/modulefiles, where
|
||||||
|
+directory. The default is $prefix/share/Modules/modulefiles, where
|
||||||
|
$prefix is set by the the --prefix configure option. (The default
|
||||||
|
is /usr/local.)
|
||||||
|
After the initial hardwork of getting the module command
|
||||||
|
@@ -152,7 +152,7 @@
|
||||||
|
--prefix=/alternate/usr/local/or/equivalent/1.0/eg
|
||||||
|
|
||||||
|
The default for --prefix is /usr/local ($prefix).
|
||||||
|
-The default for --with-module-path is "$prefix/Modules/modulefiles".
|
||||||
|
+The default for --with-module-path is "$prefix/share/Modules/modulefiles".
|
||||||
|
|
||||||
|
If you have trouble with the configuration, then consider
|
||||||
|
Run "./configure --help" to view some of the other options.
|
||||||
|
Loading…
Reference in New Issue
Block a user