- Timestamp:
- 04/13/10 15:11:52 (14 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/extract_rst.sh
r74 r77 169 169 system=$(uname) 170 170 case "${system}" in 171 AIX|IRIX64)172 echo " www : no specific posix checking"173 ;;174 *)175 set -o posix176 ;;171 AIX|IRIX64) 172 echo " www : no specific posix checking" 173 ;; 174 *) 175 set -o posix 176 ;; 177 177 esac 178 178 # … … 187 187 if [ ${#} -lt ${minargcount} ] 188 188 then 189 echo "eee : not enought arguments"190 echo "${usage}"191 exit 1189 echo "eee : not enought arguments" 190 echo "${usage}" 191 exit 1 192 192 fi 193 193 # … … 197 197 while [ ! -z "${1}" ] 198 198 do 199 case ${1} in200 -i)201 filein=${2}202 shift203 ;;204 -o)205 fileout=${2}206 shift207 ;;208 -l)209 language=${2}210 shift211 ;;212 -h)213 echo "${usage}"214 exit 1215 ;;216 *)217 echo "eee : unknown option ${1}"218 echo "${usage}"219 exit 1220 ;;221 esac222 shift # next flag223 199 case ${1} in 200 -i) 201 filein=${2} 202 shift 203 ;; 204 -o) 205 fileout=${2} 206 shift 207 ;; 208 -l) 209 language=${2} 210 shift 211 ;; 212 -h) 213 echo "${usage}" 214 exit 1 215 ;; 216 *) 217 echo "eee : unknown option ${1}" 218 echo "${usage}" 219 exit 1 220 ;; 221 esac 222 shift # next flag 223 done 224 224 # 225 225 set -u … … 228 228 # 229 229 case "${language}" in 230 fortran)231 awkblockstart="^C\+$"232 awkblockend="^C-$"233 sedblockstart="^C+$"234 sedblockend="^C-$"235 comment="^C"236 ;;237 F90)238 awkblockstart="^!\+$"239 awkblockend="^!-$"240 sedblockstart="^!+$"241 sedblockend="^!-$"242 comment="^!"243 ;;244 IDL)245 awkblockstart="^;\+$"246 awkblockend="^;-$"247 sedblockstart="^;+$"248 sedblockend="^;-$"249 comment="^;"250 ;;251 xml)252 awkblockstart="^<!--rst$"253 awkblockend="-->$"254 sedblockstart="^<!--rst$"255 sedblockend="-->$"256 comment=""257 ;;258 sh)259 # iii : awk '/^\#\+/,/^\#\-/' $file260 awkblockstart="^\#\+$"261 awkblockend="^\#\-$"262 sedblockstart="^#+"263 sedblockend="^#-"264 comment="^#"265 ;;266 dot|php)267 awkblockstart="^\/\*rst$"268 awkblockend="*\/"269 sedblockstart="^\/\*rst$"270 sedblockend="^\*\/"271 comment=""272 ;;273 matlab)274 awkblockstart="^%\+$"275 awkblockend="^%-$"276 sedblockstart="^%+$"277 sedblockend="^%-$"278 comment="^%"279 ;;280 *)281 echo "eee : ${language} not implemented"282 exit 1283 ;;230 fortran) 231 awkblockstart="^C\+$" 232 awkblockend="^C-$" 233 sedblockstart="^C+$" 234 sedblockend="^C-$" 235 comment="^C" 236 ;; 237 F90) 238 awkblockstart="^!\+$" 239 awkblockend="^!-$" 240 sedblockstart="^!+$" 241 sedblockend="^!-$" 242 comment="^!" 243 ;; 244 IDL) 245 awkblockstart="^;\+$" 246 awkblockend="^;-$" 247 sedblockstart="^;+$" 248 sedblockend="^;-$" 249 comment="^;" 250 ;; 251 xml) 252 awkblockstart="^<!--rst$" 253 awkblockend="-->$" 254 sedblockstart="^<!--rst$" 255 sedblockend="-->$" 256 comment="" 257 ;; 258 sh) 259 # iii : awk '/^\#\+/,/^\#\-/' $file 260 awkblockstart="^\#\+$" 261 awkblockend="^\#\-$" 262 sedblockstart="^#+" 263 sedblockend="^#-" 264 comment="^#" 265 ;; 266 dot|php) 267 awkblockstart="^\/\*rst$" 268 awkblockend="*\/" 269 sedblockstart="^\/\*rst$" 270 sedblockend="^\*\/" 271 comment="" 272 ;; 273 matlab) 274 awkblockstart="^%\+$" 275 awkblockend="^%-$" 276 sedblockstart="^%+$" 277 sedblockend="^%-$" 278 comment="^%" 279 ;; 280 *) 281 echo "eee : ${language} not implemented" 282 exit 1 283 ;; 284 284 esac 285 285 # … … 293 293 if [ ! -s /tmp/${$}_1 ] 294 294 then 295 rm /tmp/${$}_0 /tmp/${$}_1296 echo "iii : no rst comments in ${filein}"297 exit 1295 rm /tmp/${$}_0 /tmp/${$}_1 296 echo "iii : no rst comments in ${filein}" 297 exit 1 298 298 fi 299 299 # … … 305 305 if [ "${comment}" != "" ] 306 306 then 307 sedcmd="sed -e \"s/${comment}//\" /tmp/${$}_2 > /tmp/${$}_3"308 eval ${sedcmd}309 # suppress first blank310 cp /tmp/${$}_3 /tmp/${$}_2311 sed -e "s/^ //" /tmp/${$}_2 > /tmp/${$}_3312 cp /tmp/${$}_3 ${fileout}307 sedcmd="sed -e \"s/${comment}//\" /tmp/${$}_2 > /tmp/${$}_3" 308 eval ${sedcmd} 309 # suppress first blank 310 cp /tmp/${$}_3 /tmp/${$}_2 311 sed -e "s/^ //" /tmp/${$}_2 > /tmp/${$}_3 312 cp /tmp/${$}_3 ${fileout} 313 313 else 314 cp /tmp/${$}_2 ${fileout}314 cp /tmp/${$}_2 ${fileout} 315 315 fi 316 316 # -
trunk/adm/install.sh
r67 r77 47 47 system=$(uname) 48 48 case "${system}" in 49 AIX|IRIX64)50 echo " www : no specific posix checking"51 ;;52 *)53 set -o posix54 ;;49 AIX|IRIX64) 50 echo " www : no specific posix checking" 51 ;; 52 *) 53 set -o posix 54 ;; 55 55 esac 56 56 # … … 65 65 if [ ${#} -lt ${minargcount} ] 66 66 then 67 echo "eee : not enought arguments"68 echo "${usage}"69 exit 167 echo "eee : not enought arguments" 68 echo "${usage}" 69 exit 1 70 70 fi 71 71 # … … 77 77 while [ ! -z "${1}" ] 78 78 do 79 case ${1} in80 -w)81 dirwww=${2}82 shift83 ;;84 -p)85 dirpublish=${2}86 shift87 ;;88 -u)89 urlpublish=${2}90 shift91 ;;92 -l)93 login=${2}94 shift95 ;;96 esac97 shift # next flag79 case ${1} in 80 -w) 81 dirwww=${2} 82 shift 83 ;; 84 -p) 85 dirpublish=${2} 86 shift 87 ;; 88 -u) 89 urlpublish=${2} 90 shift 91 ;; 92 -l) 93 login=${2} 94 shift 95 ;; 96 esac 97 shift # next flag 98 98 done 99 99 # … … 104 104 answer=${1:-" "} 105 105 case ${answer} in 106 y|Y|n|N)107 ;;108 *)109 if [ "${dirpublish}" != "none" ]110 then111 echo "Do you want to install ${dirwww} on ${dirpublish} (y|[n]) ?"112 read answer113 fi114 if [ "${urlpublish}" != "none" ]115 then116 echo "Do you want to install ${dirwww} on ${urlpublish} (y|[n]) ?"117 read answer118 fi119 ;;106 y|Y|n|N) 107 ;; 108 *) 109 if [ "${dirpublish}" != "none" ] 110 then 111 echo "Do you want to install ${dirwww} on ${dirpublish} (y|[n]) ?" 112 read answer 113 fi 114 if [ "${urlpublish}" != "none" ] 115 then 116 echo "Do you want to install ${dirwww} on ${urlpublish} (y|[n]) ?" 117 read answer 118 fi 119 ;; 120 120 esac 121 121 # 122 122 case ${answer} in 123 y|Y) 124 if [ "${dirpublish}" != "none" ] 125 then 126 # copy of ${dirwww} on $dirpublish 127 echo "iii : update of ${dirpublish}" 128 rsync -av --exclude=".DS_Store" -e ssh ${dirwww}/ ${dirpublish} 129 # detect if in dirpublish following this pattern [USER@]HOST:SRC, HOST 130 # is cerbere.locean-ipsl.upmc.fr. If so, a specific update is launched 131 userhost=${dirpublish%%:*} 132 host=${userhost##*@} 133 if [ ${login} = "none" ] 134 then 135 user=${userhost%%@*} 136 else 137 user=${login} 138 fi 139 if [ "${host}" = "cerbere.locean-ipsl.upmc.fr" ] 140 then 141 wget -q "http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user}" -O /dev/null 142 fi 143 else 144 # urlpublish=http://www.locean-ipsl.upmc.fr/~ginette/produit 145 dirpublish=${urlpublish##*~} 146 cd ${dirwww} 147 #lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 148 lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} www.locean-ipsl.upmc.fr 149 # pour acmo a la main ++ 150 #++lftp -e 'mirror -R . acmo/nouveaux/;quit' -u fplod www.locean-ipsl.upmc.fr 151 152 # ++ log 153 fi 154 ;; 155 *) 156 echo "no update of ${dirpublish} or ${urlpublish}" 157 ;; 123 y|Y) 124 if [ "${dirpublish}" != "none" ] 125 then 126 # copy of ${dirwww} on $dirpublish 127 echo "iii : update of ${dirpublish}" 128 rsync -av --exclude=".DS_Store" -e ssh ${dirwww}/ ${dirpublish} 129 # detect if in dirpublish following this pattern [USER@]HOST:SRC, HOST 130 # is cerbere.locean-ipsl.upmc.fr. If so, a specific update is launched 131 userhost=${dirpublish%%:*} 132 host=${userhost##*@} 133 if [ ${login} = "none" ] 134 then 135 user=${userhost%%@*} 136 else 137 user=${login} 138 fi 139 if [ "${host}" = "cerbere.locean-ipsl.upmc.fr" ] 140 then 141 wget -q "http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user}" -O /dev/null 142 fi 143 else 144 # urlpublish=http://www.locean-ipsl.upmc.fr/~ginette/produit 145 dirpublish=${urlpublish##*~} 146 cd ${dirwww} 147 #lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 148 lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} www.locean-ipsl.upmc.fr 149 # pour acmo a la main ++ 150 #++lftp -e 'mirror -R . acmo/nouveaux/;quit' -u fplod www.locean-ipsl.upmc.fr 151 # ++ log 152 fi 153 ;; 154 *) 155 echo "no update of ${dirpublish} or ${urlpublish}" 156 ;; 158 157 esac 159 158 # -
trunk/adm/linkchecker.sh
r67 r77 79 79 system=$(uname) 80 80 case "${system}" in 81 AIX|IRIX64)82 echo " www : no specific posix checking"83 ;;84 *)85 set -o posix86 ;;81 AIX|IRIX64) 82 echo " www : no specific posix checking" 83 ;; 84 *) 85 set -o posix 86 ;; 87 87 esac 88 88 command=$(basename ${0}) … … 96 96 if [ ${#} -lt ${minargcount} ] 97 97 then 98 echo "eee : not enought arguments"99 echo "${usage}"100 exit 198 echo "eee : not enought arguments" 99 echo "${usage}" 100 exit 1 101 101 fi 102 102 # … … 105 105 while [ ! -z "${1}" ] 106 106 do 107 case ${1} in108 -d)109 idircheck=$(( ${idircheck} + 1 ))110 dircheck[${idircheck}]=$(cd ${2};pwd)111 shift112 ;;113 -u)114 iurlcheck=$(( ${iurlcheck} + 1 ))115 urlcheck[${iurlcheck}]=${2}116 shift117 ;;118 esac119 shift # next flag107 case ${1} in 108 -d) 109 idircheck=$(( ${idircheck} + 1 )) 110 dircheck[${idircheck}]=$(cd ${2};pwd) 111 shift 112 ;; 113 -u) 114 iurlcheck=$(( ${iurlcheck} + 1 )) 115 urlcheck[${iurlcheck}]=${2} 116 shift 117 ;; 118 esac 119 shift # next flag 120 120 done 121 121 # … … 136 136 if [ ${status} -ne 0 ] 137 137 then 138 echo "${command} : eee : ${commandcheck} unavailable"139 exit 1138 echo "${command} : eee : ${commandcheck} unavailable" 139 exit 1 140 140 fi 141 141 optcheck="--anchors --recursion-level=-1" -
trunk/src/dlogd.sh
r75 r77 60 60 system=$(uname) 61 61 case "${system}" in 62 AIX|IRIX64)63 echo " www : no specific posix checking"64 ;;65 *)66 set -o posix67 ;;62 AIX|IRIX64) 63 echo " www : no specific posix checking" 64 ;; 65 *) 66 set -o posix 67 ;; 68 68 esac 69 69 unset system … … 82 82 if [ "${IRCAAM_LOG}" = "" ] 83 83 then 84 echo " eee : \${IRCAAM_LOG} not defined"85 exit 184 echo " eee : \${IRCAAM_LOG} not defined" 85 exit 1 86 86 fi 87 87 # … … 89 89 if [ ! -d ${IRCAAM_LOG} ] 90 90 then 91 echo " eee : ${IRCAAM_LOG} not found"92 exit 191 echo " eee : ${IRCAAM_LOG} not found" 92 exit 1 93 93 fi 94 94 # … … 96 96 if [ ! -x ${IRCAAM_LOG} ] 97 97 then 98 echo " eee : ${IRCAAM_LOG} not reachable"99 exit 198 echo " eee : ${IRCAAM_LOG} not reachable" 99 exit 1 100 100 fi 101 101 # check for write permission on IRCAAM_LOG 102 102 if [ ! -w ${IRCAAM_LOG} ] 103 103 then 104 echo " eee : ${IRCAAM_LOG} not writable"105 exit 1104 echo " eee : ${IRCAAM_LOG} not writable" 105 exit 1 106 106 fi 107 107 # … … 111 111 if [ ${tmp} -eq 0 ] 112 112 then 113 if [ "${log}" = "" ]114 then115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2116 exit 1117 else118 # destruction du fichier ${log}119 /bin/rm -i ${log}120 exit 0121 fi113 if [ "${log}" = "" ] 114 then 115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 116 exit 1 117 else 118 # destruction du fichier ${log} 119 /bin/rm -i ${log} 120 exit 0 121 fi 122 122 else 123 exit 1123 exit 1 124 124 fi -
trunk/src/elogd.sh
r75 r77 61 61 system=$(uname) 62 62 case "${system}" in 63 AIX|IRIX64)64 echo " www : no specific posix checking"65 ;;66 *)67 set -o posix68 ;;63 AIX|IRIX64) 64 echo " www : no specific posix checking" 65 ;; 66 *) 67 set -o posix 68 ;; 69 69 esac 70 70 unset system … … 76 76 if [ ! "${EDITOR}" ] 77 77 then 78 echo " ${command} : eee : EDITOR undefined" >&279 exit 178 echo " ${command} : eee : EDITOR undefined" >&2 79 exit 1 80 80 fi 81 81 if [ "${1}" = "" ] 82 82 then 83 echo "${command} : eee : 1st parameter missing" >&284 exit 183 echo "${command} : eee : 1st parameter missing" >&2 84 exit 1 85 85 fi 86 86 # … … 88 88 if [ "${IRCAAM_LOG}" = "" ] 89 89 then 90 echo " eee : \${IRCAAM_LOG} not defined"91 exit 190 echo " eee : \${IRCAAM_LOG} not defined" 91 exit 1 92 92 fi 93 93 # … … 95 95 if [ ! -d ${IRCAAM_LOG} ] 96 96 then 97 echo " eee : ${IRCAAM_LOG} not found"98 exit 197 echo " eee : ${IRCAAM_LOG} not found" 98 exit 1 99 99 fi 100 100 # … … 102 102 if [ ! -x ${IRCAAM_LOG} ] 103 103 then 104 echo " eee : ${IRCAAM_LOG} not reachable"105 exit 1104 echo " eee : ${IRCAAM_LOG} not reachable" 105 exit 1 106 106 fi 107 107 # … … 111 111 if [ ${tmp} -eq 0 ] 112 112 then 113 if [ "${log}" = "" ]114 then115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2116 exit 1117 else118 # edit119 ${EDITOR} ${log}120 exit 0121 fi113 if [ "${log}" = "" ] 114 then 115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 116 exit 1 117 else 118 # edit 119 ${EDITOR} ${log} 120 exit 0 121 fi 122 122 else 123 exit 1123 exit 1 124 124 fi -
trunk/src/ircaam_profile.sh
r75 r77 103 103 system=$(uname) 104 104 case "${system}" in 105 AIX|IRIX64)106 echo " www : no specific posix checking"107 ;;108 *)109 set -o posix110 ;;105 AIX|IRIX64) 106 echo " www : no specific posix checking" 107 ;; 108 *) 109 set -o posix 110 ;; 111 111 esac 112 112 unset system … … 123 123 while [ ! -z "${1}" ] # ++ pb bash 124 124 do 125 case ${1} in126 -d) # directory for application choosen by user (see svn checkout command used)127 directory=${2}128 shift129 ;;130 -i) # directory for inputs choosen by user131 indir=${2}132 shift133 ;;134 -o) # directory for outputs choosen by user135 outdir=${2}136 shift137 ;;138 -t) # directory for temporary outputs choosen by user139 tempdir=${2}140 shift141 ;;142 *) # other choice143 echo "eee : unknown option ${1}"144 echo "${usage}"145 # nb : no exit because this file should be launched by login process146 ;;147 esac148 shift # next flag125 case ${1} in 126 -d) # directory for application choosen by user (see svn checkout command used) 127 directory=${2} 128 shift 129 ;; 130 -i) # directory for inputs choosen by user 131 indir=${2} 132 shift 133 ;; 134 -o) # directory for outputs choosen by user 135 outdir=${2} 136 shift 137 ;; 138 -t) # directory for temporary outputs choosen by user 139 tempdir=${2} 140 shift 141 ;; 142 *) # other choice 143 echo "eee : unknown option ${1}" 144 echo "${usage}" 145 # nb : no exit because this file should be launched by login process 146 ;; 147 esac 148 shift # next flag 149 149 done 150 150 unset usage … … 153 153 if [ ! -d ${directory} ] 154 154 then 155 echo " eee : ${directory} not found"156 # nb : no exit because this file should be launched by login process155 echo " eee : ${directory} not found" 156 # nb : no exit because this file should be launched by login process 157 157 fi 158 158 # … … 160 160 if [ ! -x ${directory} ] 161 161 then 162 echo " eee : ${directory} not reachable"163 # nb : no exit because this file should be launched by login process162 echo " eee : ${directory} not reachable" 163 # nb : no exit because this file should be launched by login process 164 164 fi 165 165 # … … 223 223 if [ ! -x ${IRCAAM_LOG} ] 224 224 then 225 echo " eee : ${IRCAAM_LOG} not reachable"226 # nb : no exit because this file should be launched by login process225 echo " eee : ${IRCAAM_LOG} not reachable" 226 # nb : no exit because this file should be launched by login process 227 227 fi 228 228 # … … 230 230 if [ ! -w ${IRCAAM_LOG} ] 231 231 then 232 echo " eee : ${IRCAAM_LOG} not writable"233 # nb : no exit because this file shouldreachable be launched by login process232 echo " eee : ${IRCAAM_LOG} not writable" 233 # nb : no exit because this file shouldreachable be launched by login process 234 234 fi 235 235 # … … 249 249 if [ ! -x ${IRCAAM_ID} ] 250 250 then 251 echo " eee : ${IRCAAM_ID} not reachable"252 # nb : no exit because this file should be launched by login process251 echo " eee : ${IRCAAM_ID} not reachable" 252 # nb : no exit because this file should be launched by login process 253 253 fi 254 254 # … … 258 258 if [ ! -d ${IRCAAM_OD} ] 259 259 then 260 mkdir -p ${IRCAAM_OD}261 echo "${command} : iii : creation of \${IRCAAM_OD}"260 mkdir -p ${IRCAAM_OD} 261 echo "${command} : iii : creation of \${IRCAAM_OD}" 262 262 fi 263 263 # check for permission on IRCAAM_OD -
trunk/src/plogd.sh
r75 r77 65 65 system=$(uname) 66 66 case "${system}" in 67 AIX|IRIX64)68 echo " www : no specific posix checking"69 ;;70 *)71 set -o posix72 ;;67 AIX|IRIX64) 68 echo " www : no specific posix checking" 69 ;; 70 *) 71 set -o posix 72 ;; 73 73 esac 74 74 unset system … … 80 80 if [ "${1}" = "" ] 81 81 then 82 echo "${command} : eee : 1st parameter missing" >&283 exit 182 echo "${command} : eee : 1st parameter missing" >&2 83 exit 1 84 84 fi 85 85 # test if a2ps available … … 89 89 if [ ${status} -ne 0 ] 90 90 then 91 echo "${command} : eee : ${tool} unavailable" >&292 exit 491 echo "${command} : eee : ${tool} unavailable" >&2 92 exit 4 93 93 fi 94 94 unset tool … … 102 102 if [ ${tmp} -eq 0 ] 103 103 then 104 if [ "${log}" = "" ]105 then106 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2107 exit 1108 else109 # printing110 a2ps --print-anyway=1 ${log}111 exit 0112 fi104 if [ "${log}" = "" ] 105 then 106 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 107 exit 1 108 else 109 # printing 110 a2ps --print-anyway=1 ${log} 111 exit 0 112 fi 113 113 else 114 exit 1114 exit 1 115 115 fi -
trunk/src/refdataget.sh
r75 r77 87 87 system=$(uname) 88 88 case "${system}" in 89 AIX|IRIX64)90 echo " www : no specific posix checking"91 ;;92 *)93 set -o posix94 ;;89 AIX|IRIX64) 90 echo " www : no specific posix checking" 91 ;; 92 *) 93 set -o posix 94 ;; 95 95 esac 96 96 unset system … … 110 110 if [ "${IRCAAM_LOG}" = "" ] 111 111 then 112 echo " eee : \${IRCAAM_LOG} not defined"113 exit 1112 echo " eee : \${IRCAAM_LOG} not defined" 113 exit 1 114 114 fi 115 115 # … … 117 117 if [ ! -d ${IRCAAM_LOG} ] 118 118 then 119 echo " eee : ${IRCAAM_LOG} not found"120 exit 1119 echo " eee : ${IRCAAM_LOG} not found" 120 exit 1 121 121 fi 122 122 # … … 124 124 if [ ! -x ${IRCAAM_LOG} ] 125 125 then 126 echo " eee : ${IRCAAM_LOG} not reachable"127 exit 1126 echo " eee : ${IRCAAM_LOG} not reachable" 127 exit 1 128 128 fi 129 129 # … … 131 131 if [ ! -w ${IRCAAM_LOG} ] 132 132 then 133 echo " eee : ${IRCAAM_LOG} not writable"134 exit 1133 echo " eee : ${IRCAAM_LOG} not writable" 134 exit 1 135 135 fi 136 136 # … … 144 144 if [ ! -w ${IRCAAM_ID} ] 145 145 then 146 echo " eee : ${IRCAAM_ID} not writable"147 exit 1146 echo " eee : ${IRCAAM_ID} not writable" 147 exit 1 148 148 fi 149 149 … … 159 159 for simu in ${list_simu} 160 160 do 161 case ${simu} in 162 CtIV|CtCl|AfNQIVIV) 163 dirref="${dirrefb}/Sim/" 164 ;; 165 AsNQIVIV) 166 dirref="${dirrefb}/Sim_As/" 167 ;; 168 TrNQIVIV) 169 dirref="${dirrefb}/Sim_Tr/" 170 ;; 171 *) 172 echo "eee : wrong \${simu}" 173 exit 1 174 esac 175 dirref="${dirref}/${simu}/" 176 for param in ${list_param} 177 do 178 year_i=${year_min} 179 while [ ${year_i} -le ${year_max} ] 180 do 181 year_c=$(printf "%4.4d" ${year_i}') 182 fileref=${param}.${simu}.${year_c}06-09.nc 183 if [ -f ${IRCAAM_ID}/${fileref} ] 184 then 185 echo "iii : ${IRCAAM_ID}/${fileref} exist" ${log} 2>&1 186 echo "iii : nothing done" >> ${log} 2>&1 187 else 188 wget --no-verbose --user=ircaam-dods --password=${dods_passwd} \ 189 -P ${IRCAAM_ID} \ 190 ${dirref}/${fileref} >> ${log} 2>&1 191 # ++ ok ? 192 # ++ si climserv faire ln -s ${dirref}/${fileref} ${VARAMMA_ID}/ 193 fi 194 year_i=$(( ${year_i} + 1 )) 195 done 196 done 161 case ${simu} in 162 CtIV|CtCl|AfNQIVIV) 163 dirref="${dirrefb}/Sim/" 164 ;; 165 AsNQIVIV) 166 dirref="${dirrefb}/Sim_As/" 167 ;; 168 TrNQIVIV) 169 dirref="${dirrefb}/Sim_Tr/" 170 ;; 171 *) 172 echo "eee : wrong \${simu}" 173 exit 1 174 ;; 175 esac 176 dirref="${dirref}/${simu}/" 177 for param in ${list_param} 178 do 179 year_i=${year_min} 180 while [ ${year_i} -le ${year_max} ] 181 do 182 year_c=$(printf "%4.4d" ${year_i}') 183 fileref=${param}.${simu}.${year_c}06-09.nc 184 if [ -f ${IRCAAM_ID}/${fileref} ] 185 then 186 echo "iii : ${IRCAAM_ID}/${fileref} exist" ${log} 2>&1 187 echo "iii : nothing done" >> ${log} 2>&1 188 else 189 wget --no-verbose --user=ircaam-dods --password=${dods_passwd} \ 190 -P ${IRCAAM_ID} \ 191 ${dirref}/${fileref} >> ${log} 2>&1 192 # ++ ok ? 193 # ++ si climserv faire ln -s ${dirref}/${fileref} ${VARAMMA_ID}/ 194 fi 195 year_i=$(( ${year_i} + 1 )) 196 done 197 done 197 198 done 198 199 199 # OLR 200 200 fileref=olr.day.mean.nc … … 202 202 if [ -f ${IRCAAM_ID}/${fileref} ] 203 203 then 204 echo "iii : ${IRCAAM_ID}/${fileref} exist" >> ${log} 2>&1205 echo "iii : nothing done" >> ${log} 2>&1204 echo "iii : ${IRCAAM_ID}/${fileref} exist" >> ${log} 2>&1 205 echo "iii : nothing done" >> ${log} 2>&1 206 206 else 207 wget --no-verbose -P ${IRCAAM_ID} ${dirref}/${fileref} >> ${log}208 # ++ ok ?207 wget --no-verbose -P ${IRCAAM_ID} ${dirref}/${fileref} >> ${log} 208 # ++ ok ? 209 209 fi 210 210 # -
trunk/src/tlogd.sh
r75 r77 70 70 system=$(uname) 71 71 case "${system}" in 72 AIX|IRIX64)73 echo " www : no specific posix checking"74 ;;75 *)76 set -o posix77 ;;72 AIX|IRIX64) 73 echo " www : no specific posix checking" 74 ;; 75 *) 76 set -o posix 77 ;; 78 78 esac 79 79 unset system … … 85 85 if [ "${1}" = "" ] 86 86 then 87 echo "${command} : eee : 1st parameter missing" >&288 exit 187 echo "${command} : eee : 1st parameter missing" >&2 88 exit 1 89 89 fi 90 90 # check for ${IRCAAM_LOG} definition 91 91 if [ "${IRCAAM_LOG}" = "" ] 92 92 then 93 echo " eee : \${IRCAAM_LOG} not defined"94 exit 193 echo " eee : \${IRCAAM_LOG} not defined" 94 exit 1 95 95 fi 96 96 # … … 98 98 if [ ! -d ${IRCAAM_LOG} ] 99 99 then 100 echo " eee : ${IRCAAM_LOG} not found"101 exit 1100 echo " eee : ${IRCAAM_LOG} not found" 101 exit 1 102 102 fi 103 103 # … … 105 105 if [ ! -x ${IRCAAM_LOG} ] 106 106 then 107 echo " eee : ${IRCAAM_LOG} not reachable"108 exit 1107 echo " eee : ${IRCAAM_LOG} not reachable" 108 exit 1 109 109 fi 110 110 # … … 114 114 if [ ${tmp} -eq 0 ] 115 115 then 116 if [ "${log}" = "" ]117 then118 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2119 exit 1120 else121 more ${log}122 exit 0123 fi116 if [ "${log}" = "" ] 117 then 118 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 119 exit 1 120 else 121 more ${log} 122 exit 0 123 fi 124 124 else 125 exit 1125 exit 1 126 126 fi
Note: See TracChangeset
for help on using the changeset viewer.