Changeset 42 for trunk/geomag_profile.sh
- Timestamp:
- 03/25/10 16:46:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geomag_profile.sh
r40 r42 2 2 # 3 3 #+ 4 # 5 # NAME 6 # ==== 7 # 8 # geomag_profile.sh - define GEOMAG environment 4 # ================= 5 # geomag_profile.sh 6 # ================= 7 # 8 # ------------------------- 9 # define GEOMAG environment 10 # ------------------------- 9 11 # 10 12 # SYNOPSIS 11 13 # ======== 12 14 # 13 # Online usage 14 # 15 # :: 16 # 17 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 18 # 19 # In ${HOME}/.profile, add the following line 20 # 21 # :: 22 # 23 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 15 # Online usage:: 16 # 17 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 18 # 19 # In ${HOME}/.profile, add the following line:: 20 # 21 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 24 22 # 25 23 # DESCRIPTION … … 41 39 # ======== 42 40 # 43 # For fplod, on aedon.locean-ipsl.upmc.fr: 44 # :: 41 # For fplod, on aedon.locean-ipsl.upmc.fr:: 45 42 # 46 43 # $ cd /usr/home/fplod/incas/geomag/geomag_ws 47 44 # $ . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ -i ${HOME}/geomag_d/ -o ${HOME}/geomag_d/ -t /usr/temp/${LOGNAME}/log/ 48 45 # 49 # For reee522 on rhodes.idris.fr: 50 # :: 46 # For reee522 on rhodes.idris.fr:: 51 47 # 52 48 # $ cd ${HOME}/incas/geomag/geomag_ws/ 53 49 # $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 54 50 # 55 # 56 # FILES 57 # ===== 58 # 59 # original location 60 # ~~~~~~~~~~~~~~~~~ 61 # 62 # /usr/home/fplod/incas/geomag/geomag_ws/geomag_profile.sh sur aedon.locean-ipsl.upmc.fr 51 # TODO 52 # ==== 53 # 54 # ++ option bavarde 55 # 56 # ++ machine dependant 57 # 58 # ++ besoin de posix 59 # 60 # ++ pas de MANPATH defini par défaut sur zeus 63 61 # 64 62 # EVOLUTIONS 65 63 # ========== 66 64 # 67 # ++ option bavarde68 #69 # ++ machine dependant70 #71 # ++ besoin de posix72 #73 # ++ pas de MANPATH defini par déubt sur zeus74 #75 65 # $Id$ 66 # 67 # - fplod 20100318T073619Z aedon.locean-ipsl.upmc.fr (Darwin) 68 # 69 # * unset 76 70 # 77 71 # - reee522 2007-06-14T14:25:00Z rhodes (IRIX64) … … 99 93 usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir" 100 94 # 95 set +u 101 96 while [ ! -z "${1}" ] # ++ pb bash 102 97 do … … 120 115 121 116 *) # other choice 117 echo "eee : unknown option ${1}" 122 118 echo "${usage}" 123 119 # nb : no exit because this file should be launched by login process … … 126 122 shift # next flag 127 123 done 128 124 unset usage 125 # 126 set -u 127 # 129 128 # check for ${directory} 130 129 if [ ! -d ${directory} ] … … 151 150 ;; 152 151 esac 152 unset system 153 153 # 154 154 GEOMAG=${directory} 155 155 export GEOMAG 156 unset directory 156 157 # 157 158 # add GEOMAG tools to PATH … … 167 168 echo "${command} : iii : ${GEOMAG}/ already in \${PATH}" 168 169 fi 170 unset test_path 169 171 # 170 172 # add GEOMAG manuals to MANPATH … … 174 176 if [ ${test_manpath} -ne 0 ] 175 177 then 176 MANPATH=${GEOMAG}/ man/:${MANPATH}178 MANPATH=${GEOMAG}/doc/manuals/man/:${MANPATH} 177 179 export MANPATH 178 180 else 179 181 # option bavarde oui/non pas encore implantée ++ 180 echo "${command} : iii : ${GEOMAG}/man/ already in \${MANPATH}" 181 fi 182 echo "${command} : iii : ${GEOMAG}/doc/manuals/man/ already in \${MANPATH}" 183 fi 184 unset test_manpath 182 185 # 183 186 GEOMAG_LOG=${tempdir} 184 187 export GEOMAG_LOG 188 unset tempdir 185 189 if [ ! -d ${GEOMAG_LOG} ] 186 190 then … … 208 212 GEOMAG_ID=${indir} 209 213 export GEOMAG_ID 214 unset indir 210 215 if [ ! -d ${GEOMAG_ID} ] 211 216 then … … 222 227 GEOMAG_OD=${outdir} 223 228 export GEOMAG_OD 229 unset outdir 224 230 if [ ! -d ${GEOMAG_OD} ] 225 231 then … … 240 246 # 241 247 # end 248 unset command 242 249 # nb : no exit because this file should be launched by login process
Note: See TracChangeset
for help on using the changeset viewer.