Changeset 89
- Timestamp:
- 02/03/14 18:32:57 (10 years ago)
- Location:
- trunk
- Files:
-
- 6 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ircaam_profile.sh
r88 r89 111 111 system=$(uname) 112 112 case "${system}" in 113 AIX|IRIX64)114 echo " www : no specific posix checking"115 ;;116 *)117 set -o posix118 ;;113 AIX|IRIX64) 114 echo " www : no specific posix checking" 115 ;; 116 *) 117 set -o posix 118 ;; 119 119 esac 120 120 unset system … … 131 131 while [ ${#} -gt 0 ] 132 132 do 133 case ${1} in134 -d)135 # directory for application choosen by user (see svn checkout command used)136 directory=${2}137 shift138 ;;139 -i)140 # directory for inputs choosen by user141 indir=${2}142 shift143 ;;144 -o)145 # directory for outputs choosen by user146 outdir=${2}147 shift148 ;;149 -t)150 # directory for temporary outputs choosen by user151 tempdir=${2}152 shift153 ;;154 *)155 # other choice156 echo "eee : unknown option ${1}"157 echo "${usage}"158 # nb : no exit because this file should be launched by login process159 ;;160 esac161 # next flag162 shift133 case ${1} in 134 -d) 135 # directory for application choosen by user (see svn checkout command used) 136 directory=${2} 137 shift 138 ;; 139 -i) 140 # directory for inputs choosen by user 141 indir=${2} 142 shift 143 ;; 144 -o) 145 # directory for outputs choosen by user 146 outdir=${2} 147 shift 148 ;; 149 -t) 150 # directory for temporary outputs choosen by user 151 tempdir=${2} 152 shift 153 ;; 154 *) 155 # other choice 156 echo "eee : unknown option ${1}" 157 echo "${usage}" 158 # nb : no exit because this file should be launched by login process 159 ;; 160 esac 161 # next flag 162 shift 163 163 done 164 164 unset usage … … 167 167 if [ ! -d ${directory} ] 168 168 then 169 echo " eee : ${directory} not found"170 # nb : no exit because this file should be launched by login process169 echo " eee : ${directory} not found" 170 # nb : no exit because this file should be launched by login process 171 171 fi 172 172 # … … 174 174 if [ ! -x ${directory} ] 175 175 then 176 echo " eee : ${directory} not reachable"177 # nb : no exit because this file should be launched by login process176 echo " eee : ${directory} not reachable" 177 # nb : no exit because this file should be launched by login process 178 178 fi 179 179 # … … 189 189 if [ ${test_path} -ne 0 ] 190 190 then 191 PATH=${suppath}:${PATH}192 export PATH191 PATH=${suppath}:${PATH} 192 export PATH 193 193 else 194 # option bavarde oui/non pas encore implantée ++195 echo "${command} : iii : ${suppath} already in \${PATH}"194 # option bavarde oui/non pas encore implantée ++ 195 echo "${command} : iii : ${suppath} already in \${PATH}" 196 196 fi 197 197 unset test_path … … 205 205 if [ ${test_path} -ne 0 ] 206 206 then 207 PATH=${suppath}:${PATH}208 export PATH207 PATH=${suppath}:${PATH} 208 export PATH 209 209 else 210 # option bavarde oui/non pas encore implantée ++211 echo "${command} : iii : ${suppath} already in \${PATH}"210 # option bavarde oui/non pas encore implantée ++ 211 echo "${command} : iii : ${suppath} already in \${PATH}" 212 212 fi 213 213 unset test_path … … 221 221 if [ ${test_manpath} -ne 0 ] 222 222 then 223 MANPATH=${suppath}:${MANPATH}224 export MANPATH223 MANPATH=${suppath}:${MANPATH} 224 export MANPATH 225 225 else 226 # option bavarde oui/non pas encore implantée ++227 echo "${command} : iii : ${suppath} already in \${MANPATH}"226 # option bavarde oui/non pas encore implantée ++ 227 echo "${command} : iii : ${suppath} already in \${MANPATH}" 228 228 fi 229 229 unset test_manpath … … 235 235 if [ ! -d ${IRCAAM_LOG} ] 236 236 then 237 mkdir -p ${IRCAAM_LOG}238 status=${?}239 if [ ${status} -ne 0 ]240 then241 echo "${command} : eee : can not create \${IRCAAM_LOG}"242 # nb : no exit because this file should be launched by login process243 else244 echo "${command} : iii : creation of \${IRCAAM_LOG}"245 fi246 unset status237 mkdir -p ${IRCAAM_LOG} 238 status=${?} 239 if [ ${status} -ne 0 ] 240 then 241 echo "${command} : eee : can not create \${IRCAAM_LOG}" 242 # nb : no exit because this file should be launched by login process 243 else 244 echo "${command} : iii : creation of \${IRCAAM_LOG}" 245 fi 246 unset status 247 247 fi 248 248 # check for permission on IRCAAM_LOG 249 249 if [ ! -x ${IRCAAM_LOG} ] 250 250 then 251 echo " eee : ${IRCAAM_LOG} not reachable"252 # nb : no exit because this file should be launched by login process251 echo " eee : ${IRCAAM_LOG} not reachable" 252 # nb : no exit because this file should be launched by login process 253 253 fi 254 254 # … … 256 256 if [ ! -w ${IRCAAM_LOG} ] 257 257 then 258 echo " eee : ${IRCAAM_LOG} not writable"259 # nb : no exit because this file shouldreachable be launched by login process258 echo " eee : ${IRCAAM_LOG} not writable" 259 # nb : no exit because this file shouldreachable be launched by login process 260 260 fi 261 261 # … … 269 269 if [ ! -d ${IRCAAM_ID} ] 270 270 then 271 mkdir -p ${IRCAAM_ID}272 echo "${command} : iii : creation of \${IRCAAM_ID}"271 mkdir -p ${IRCAAM_ID} 272 echo "${command} : iii : creation of \${IRCAAM_ID}" 273 273 fi 274 274 # check for permission on IRCAAM_ID 275 275 if [ ! -x ${IRCAAM_ID} ] 276 276 then 277 echo " eee : ${IRCAAM_ID} not reachable"278 # nb : no exit because this file should be launched by login process277 echo " eee : ${IRCAAM_ID} not reachable" 278 # nb : no exit because this file should be launched by login process 279 279 fi 280 280 # … … 284 284 if [ ! -d ${IRCAAM_OD} ] 285 285 then 286 mkdir -p ${IRCAAM_OD}287 echo "${command} : iii : creation of \${IRCAAM_OD}"286 mkdir -p ${IRCAAM_OD} 287 echo "${command} : iii : creation of \${IRCAAM_OD}" 288 288 fi 289 289 # check for permission on IRCAAM_OD 290 290 if [ ! -x ${IRCAAM_OD} ] 291 291 then 292 echo " eee : ${IRCAAM_OD} not reachable"293 # nb : no exit because this file should be launched by login process292 echo " eee : ${IRCAAM_OD} not reachable" 293 # nb : no exit because this file should be launched by login process 294 294 fi 295 295 if [ ! -w ${IRCAAM_OD} ] 296 296 then 297 echo " eee : ${IRCAAM_OD} not writable"298 # nb : no exit because this file should be launched by login process297 echo " eee : ${IRCAAM_OD} not writable" 298 # nb : no exit because this file should be launched by login process 299 299 fi 300 300 # -
trunk/src/refdataget.sh
r82 r89 42 42 # 43 43 # If you are working on LOCEAN machine and you don't have any reference data, 44 # you just have to run this tool :: 45 # 46 # $ refdataget.sh 47 # 48 # And look at log file with :: 49 # 50 # $ tlogd.sh refdataget 44 # you just have to run this tool : 45 # 46 # .. code-block:: bash 47 # 48 # refdataget.sh 49 # 50 # And look at log file with : 51 # 52 # .. code-block:: bash 53 # 54 # tlogd.sh refdataget 51 55 # 52 56 # and of course on files in ${IRCAAM_ID}.
Note: See TracChangeset
for help on using the changeset viewer.