Changeset 1583
- Timestamp:
- 11/18/11 16:14:23 (13 years ago)
- Location:
- modipsl/trunk/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
modipsl/trunk/util/script_diff_model
r1580 r1583 25 25 # 26 26 # It may be used in modipsl directory : 27 # modipsl_path> util/script_diff_model modipsl_name_of_the_save28 # 29 # After this use, you will have a modipsl_path/modipsl_ name_of_the_save.tar file that you can save with the30 # executable you have build with this modified configuration.27 # modipsl_path> util/script_diff_model 28 # 29 # After this use, you will have a modipsl_path/modipsl_save_diff_$( date +%F_%H%M%S ) tree that 30 # you can tar and save with the executable you have build with this modified configuration. 31 31 # 32 32 # Note : … … 63 63 64 64 # Code source suffixe for new file detection 65 SUFFIXES='\(f90\|F90\|f\|F\|h\|h90\|hh\|c\|cc\|inc\|fcm\|path\|cfg\|card\|driver\|def\|def_.*\|txt\|xml\|ksh\ )'65 SUFFIXES='\(f90\|F90\|f\|F\|h\|h90\|hh\|c\|cc\|inc\|fcm\|path\|cfg\|card\|driver\|def\|def_.*\|txt\|xml\|ksh\|tex\)' 66 66 67 67 MODIPSL_SAVE_NAME=modipsl_save_diff_$( date +%F_%H%M%S ) 68 echo "out directory in " ${MODIPSL_SAVE_NAME} 68 69 MODIPSL_SAVE=${MODIPSL}/${MODIPSL_SAVE_NAME} 69 70 printDebugArray MODIPSL_SAVE … … 188 189 else 189 190 svn status ${filecomp} > ${MODIPSL}/svn_status_${save_diff_file} 190 set -A NewFiles -- $( grep "^? .*\.${SUFFIXES}$" ${MODIPSL}/svn_status_${save_diff_file} | sed -e "s&? *&&" )191 set -A NewFiles -- $( grep "^? *\(.*\.${SUFFIXES}\|AA_.*\|BB_.*\)$" ${MODIPSL}/svn_status_${save_diff_file} | sed -e "s&? *&&" ) 191 192 printDebugArray NewFiles 192 193 for file in ${NewFiles[@]} ; do … … 197 198 done 198 199 199 set -A ModifiedFiles -- $( grep "^M .*\.${SUFFIXES}$" ${MODIPSL}/svn_status_${save_diff_file} | sed -e "s&M *&&" )200 set -A ModifiedFiles -- $( grep "^M *" ${MODIPSL}/svn_status_${save_diff_file} | sed -e "s&M *&&" ) 200 201 printDebugArray ModifiedFiles 201 202 for file in ${ModifiedFiles[@]} ; do … … 304 305 echo ${ListModifFilesDate[@]} >> ${MODIPSL_SAVE}/Last_log 305 306 echo ${Maxfiledate} >> ${MODIPSL_SAVE}/Last_log 307 308 309 echo "out directory in " ${MODIPSL_SAVE} -
modipsl/trunk/util/script_log_analyse
r1579 r1583 91 91 92 92 rm ${LastModelFile} 93 rm ${logfile} -
modipsl/trunk/util/script_recup_model
r1581 r1583 15 15 # This script creates a tree of last configuration modipsl from a tar file previously produced by script_diff_model. 16 16 # 17 # After you have downloaded modipsl, you can copy a modipsl_name_of_the_save .tar filein modipsl.17 # After you have downloaded modipsl, you can copy a modipsl_name_of_the_save directory tree (from a saved tar file) in modipsl. 18 18 # (Please, see script_diff_model documentation for information of how to get this file.) 19 19 # You may use this script to download the same configuration with new files and modifications linked with this tarball. … … 21 21 # usage (in modipsl path) : 22 22 # modipsl_path> util/script_recup_model modipsl_name_of_the_save 23 # (without tar extension.)24 23 # 25 24 # After this whole configuration is backuped, you must use as usual ins_make and ins_job script
Note: See TracChangeset
for help on using the changeset viewer.