[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
certi myCERTI_env.sh.in myCERTI_env.csh.in
From: |
certi-cvs |
Subject: |
certi myCERTI_env.sh.in myCERTI_env.csh.in |
Date: |
Sun, 28 Oct 2007 23:27:28 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 07/10/28 23:27:28
Modified files:
. : myCERTI_env.sh.in myCERTI_env.csh.in
Log message:
First pass update of the Bourne Shell scripts
from C-Shell one (correct some typo in C-shell too)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/myCERTI_env.sh.in?cvsroot=certi&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/certi/myCERTI_env.csh.in?cvsroot=certi&r1=3.1&r2=3.2
Patches:
Index: myCERTI_env.sh.in
===================================================================
RCS file: /sources/certi/certi/myCERTI_env.sh.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- myCERTI_env.sh.in 18 Oct 2007 21:25:42 -0000 1.3
+++ myCERTI_env.sh.in 28 Oct 2007 23:27:28 -0000 1.4
@@ -4,6 +4,21 @@
export CERTI_VERSION="@PACKAGE_VERSION@"
echo "CERTI version <$CERTI_VERSION>"
+# 1 : shell verification
+MYSHELL=`basename $SHELL`
+case $MYSHELL in
+ sh) ;;
+ bash) ;;
+ zsh) ;;
+ ksh) ;;
+ *)
+ echo "You may not be using a bourne shell, please use myCERTI.csh"
+ exit
+ ;;
+esac
+
+# 2 CERTI_HOST (i.e. where rtig runs)
+
if [ $# -gt 0 ];
then
export CERTI_HOST=$1
@@ -11,7 +26,7 @@
export CERTI_HOST=localhost
fi
-echo "Using CERTI_HOST=$CERTI_HOST"
+# 3 Architecture (i.e 32 or 64 bits)
ARCH=`uname -m`
if [ "$ARCH" = "i686" ];
@@ -23,15 +38,32 @@
echo "Current machine architecture is <$ARCH> assumed to be $NBITS"
+# 4 CERTI_HOME (i.e. where we find bin,lib,share,include about CERTI built)
+
export address@hidden@
alias go_certi_home='pushd $CERTI_HOME'
-echo "Using CERTI installation at <$CERTI_HOME>..."
+# 5 CERTI_FED (i.e. where we find (default) FED files
export CERTI_FED=$CERTI_HOME/share/federations
alias go_certi_fed='pushd $CERTI_FED'
+# 6 PATH (i.e. to run easily rtig and s.o.)
+# Note sometimes PATH is not modified
+
export PATH=$PATH:$CERTI_HOME/bin:$CERTI_HOME/scripts
+# 7 LD_LIBRARY_PATH ( applications needs...)
+# Note LD_LIBRARY_PATH has to be extended sometimes
export LD_LIBRARY_PATH=$CERTI_HOME/lib:$LD_LIBRARY_PATH
+echo "=========================================================="
+echo "** WARNING ** We hope you have made source myCERTI.sh **"
+echo " ------"
+echo "If yes your variables for CERTI are now :"
+echo "CERTI_HOST = " $CERTI_HOST
+echo "CERTI_HOME = " $CERTI_HOME
+echo "CERTI_FED = " $CERTI_FED
+echo "PATH = " $PATH
+echo "LD_LIBRARY_PATH = " $LD_LIBRARY_PATH
+
Index: myCERTI_env.csh.in
===================================================================
RCS file: /sources/certi/certi/myCERTI_env.csh.in,v
retrieving revision 3.1
retrieving revision 3.2
diff -u -b -r3.1 -r3.2
--- myCERTI_env.csh.in 24 Oct 2007 07:36:30 -0000 3.1
+++ myCERTI_env.csh.in 28 Oct 2007 23:27:28 -0000 3.2
@@ -39,7 +39,7 @@
alias go_certi_fed='pushd $CERTI_FED'
# 6 PATH (i.e. to run easily rtig and s.o.)
-# Note sometimes PATH no modified
+# Note sometimes PATH is not modified
setenv MOREPATHBIN "$CERTI_HOME/bin"
setenv MODIFPATH `echo $PATH | grep $MOREPATHBIN`
if ( $MODIFPATH == "" ) then
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- certi myCERTI_env.sh.in myCERTI_env.csh.in,
certi-cvs <=