Changeset 430 for trunk/SRC/Documentation/xmldoc/docompileall.sh
- Timestamp:
- 04/15/10 15:13:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/docompileall.sh
r420 r430 102 102 system=$(uname) 103 103 case "${system}" in 104 AIX|IRIX64)105 echo " www : no specific posix checking"106 ;;107 *)108 set -o posix109 ;;104 AIX|IRIX64) 105 echo " www : no specific posix checking" 106 ;; 107 *) 108 set -o posix 109 ;; 110 110 esac 111 111 command=$(basename ${0}) … … 119 119 if [ ${#} -lt ${minargcount} ] 120 120 then 121 echo "eee : not enought arguments (${#} vs ${minargcount})"122 echo "${usage}"123 exit 1121 echo "eee : not enought arguments (${#} vs ${minargcount})" 122 echo "${usage}" 123 exit 1 124 124 fi 125 125 # … … 134 134 while [ ! -z "${1}" ] 135 135 do 136 case ${1} in137 -i)138 indir=${2}139 shift140 ;;141 -idl_dir)142 idl_dir=${2}143 shift144 ;;145 -h)146 echo "${usage}"147 exit 0148 ;;149 *) # other choice150 echo "${usage}"151 exit 1152 ;;153 esac154 shift # next flag136 case ${1} in 137 -i) 138 indir=${2} 139 shift 140 ;; 141 -idl_dir) 142 idl_dir=${2} 143 shift 144 ;; 145 -h) 146 echo "${usage}" 147 exit 0 148 ;; 149 *) # other choice 150 echo "${usage}" 151 exit 1 152 ;; 153 esac 154 shift # next flag 155 155 done 156 156 # … … 160 160 if [ ! -d ${indir} ] 161 161 then 162 echo "eee : ${indir} not found"163 exit 1162 echo "eee : ${indir} not found" 163 exit 1 164 164 fi 165 165 # … … 178 178 if [ "${indir}" != "${SAXO_DIR}/SRC/" ] 179 179 then 180 cat <<EOF >> /tmp/docompileall${$}.pro180 cat <<EOF >> /tmp/docompileall${$}.pro 181 181 !path = expand_path('+' + '${indir}') + ':' + !path 182 182 EOF … … 208 208 if [ "${list_files}" = "" ] 209 209 then 210 echo "eee : no . pro files found under ${indir}"211 exit 1210 echo "eee : no . pro files found under ${indir}" 211 exit 1 212 212 fi 213 213 # … … 216 216 for i in ${list_files} 217 217 do 218 # does it contains pro or function ?219 egrep -iq '^ * *(pro|function)' ${i}220 if [ ${?} -eq 0 ]221 then222 echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro223 echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro224 fi218 # does it contains pro or function ? 219 egrep -iq '^ * *(pro|function)' ${i} 220 if [ ${?} -eq 0 ] 221 then 222 echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 223 echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 224 fi 225 225 done 226 226 echo "exit" >> /tmp/docompileall${$}.pro … … 233 233 if [ ${?} -ne 0 ] 234 234 then 235 echo "all files are OK"236 # clean237 rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro235 echo "all files are OK" 236 # clean 237 rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 238 238 else 239 grep "Compilation error(s)" /tmp/docompileallerr_${$} 240 echo "eee : see /tmp/docompileallerr_${$}" 241 more /tmp/docompileallerr_${$} 242 exit 1 243 fi 244 239 grep "Compilation error(s)" /tmp/docompileallerr_${$} 240 echo "eee : see /tmp/docompileallerr_${$}" 241 more /tmp/docompileallerr_${$} 242 exit 1 243 fi 245 244 # end 246 245 exit 0
Note: See TracChangeset
for help on using the changeset viewer.