Changeset 4586 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Jul 1, 2020 4:16:43 PM (4 years ago)
Author:
gronemeier
Message:

renamed Richardson flux number into gradient Richardson number (model_1d_mod.f90, turbulence_closure_mod.f90, header.f90, surface_mod.f90) and zeta (header.f90);
do not add whitespaces at current-revision section (document_changes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/document_changes

    r4481 r4586  
    33# This file is part of the PALM model system.
    44#
    5 # PALM is free software: you can redistribute it and/or modify it under the 
    6 # terms of the GNU General Public License as published by the Free Software 
    7 # Foundation, either version 3 of the License, or (at your option) any later 
     5# PALM is free software: you can redistribute it and/or modify it under the
     6# terms of the GNU General Public License as published by the Free Software
     7# Foundation, either version 3 of the License, or (at your option) any later
    88# version.
    99#
     
    2020# Current revisions:
    2121# -----------------
    22 # 
    23 # 
     22#
     23#
    2424# Former revisions:
    2525# -----------------
    2626# $Id$
     27# Do not add whitespaces at current-revision section
     28#
     29# 4481 2020-03-31 18:55:54Z maronga
    2730# Bugfix for copyright updates
    28 # 
     31#
    2932# 4370 2020-01-10 14:00:44Z raasch
    3033# script made bash compatible
    31 # 
     34#
    3235# 3665 2019-01-10 08:28:24Z raasch
    3336# Corrected "Former revisions" section
    34 # 
     37#
    3538# 2696 2017-12-14 17:12:51Z kanani
    3639# Change in file header (GPL part)
     
    3942# Changed the submission procedure in order to reduce the number of required
    4043# commits to one per change.
    41 # 
     44#
    4245# 2117 2017-01-16 16:28:44Z maronga
    43 # 
     46#
    4447# 1827 2016-04-07 12:12:23Z maronga
    4548# Added note that the script does not work on MAC OS
    46 # 
     49#
    4750# 1813 2016-04-06 09:38:56Z maronga
    4851# Added update of the copyright statements in the file headers.
    49 # 
     52#
    5053# 1810 2016-04-05 20:25:29Z maronga
    5154# document_changes now checks all subdirectories. Modified printing to screen.
    52 # 
     55#
    5356# 1804 2016-04-05 16:30:18Z maronga
    5457# Removed printing of "this is an alpha version"
    55 # 
     58#
    5659# 1326 2014-03-21 10:44:31Z maronga
    5760# Initial revision
    58 # 
     61#
    5962# Description:
    6063# ------------
     
    105108       input_dir=`pwd`
    106109    fi
    107    
     110
    108111    printf "\n"
    109112    printf "#------------------------------------------------------------------------# \n"
     
    111114    printf "|                                                                        | \n"
    112115    printf "| This tool moves the change comments in the all PALM file headers from  | \n"
    113     printf "| 'Current revisions' to 'Former revisions' and saves the time stamp.    | \n" 
     116    printf "| 'Current revisions' to 'Former revisions' and saves the time stamp.    | \n"
    114117    printf "#------------------------------------------------------------------------# \n"
    115    
     118
    116119    printf "\n  *** Checking files in $input_dir and all recursive subdirectories...\n"
    117120
    118    
     121
    119122#
    120123#-- scan all (sub-)directories for files.
     
    134137          continue
    135138       fi
    136        
     139
    137140       (( count_files = count_files + 1 ))
    138141
     
    179182             then
    180183
    181              
    182                 printf "\r%$(tput cols)s" " "   
     184
     185                printf "\r%$(tput cols)s" " "
    183186                printf "\r  \e[1;92m*** Comments found in $fn\e[0m\n"
    184              
     187
    185188                found_comment=true
    186189                cp $fn $fn~
     
    195198             fi
    196199          fi
    197          
     200
    198201#
    199202#--       get the timestamp from the current revision
     
    204207            timestamp_string="$comment_char $timestamp"
    205208          fi
    206          
     209
    207210       done <"$fn"
    208211
     
    210213#
    211214#--    check for updates of the copyright statement
    212        while read line 
    213        do 
     215       while read line
     216       do
    214217
    215218          line_tmp=""
    216           line_tmp2=""     
     219          line_tmp2=""
    217220          line_tmp=${line:22:29}
    218221          line_tmp2=${line:2:10}
     
    226229             if  [[ "$year_in_file2" != "$current_year" ]]
    227230             then
    228                 printf "\r%$(tput cols)s" " "   
     231                printf "\r%$(tput cols)s" " "
    229232                printf "\r  \e[1;33m*** Copyright update required in $fn\e[0m\n"
    230233
     
    240243       done <"$fn"
    241244
    242        printf "\r%$(tput cols)s" " "   
     245       printf "\r%$(tput cols)s" " "
    243246       printf "\r\e[1m  *** Searched files: $count_files. Comments found: $count_changes. Copyright updates found: $count_updates\e[0m"
    244247
     
    257260#--       fix old time stamp
    258261          (( line_time = line_stop + 2 ))
    259           sed -i "${line_time}d" $fn     
     262          sed -i "${line_time}d" $fn
    260263          sed -i "${line_time}i$timestamp_string" $fn
    261264
     
    273276          list_delete=${list_delete#?}
    274277          sed -i "$list_delete" $fn
    275           sed -i "${line_start}i${comment_char} " $fn
    276           sed -i "${line_start}i${comment_char} " $fn
     278          sed -i "${line_start}i${comment_char}" $fn
     279          sed -i "${line_start}i${comment_char}" $fn
    277280
    278281       fi
     
    288291    then
    289292       printf "  *** You can now proceed with\n      \e[0;91msvn commit -m 'your commit message' trunk\e[0m\n"
    290        printf "  *** Please do not forget to commit your changes in the changelog at\n      \e[0;91mhttps://palm.muk.uni-hannover.de/trac/wiki/doc/tec/changelog\e[0m!\n"   
     293       printf "  *** Please do not forget to commit your changes in the changelog at\n      \e[0;91mhttps://palm.muk.uni-hannover.de/trac/wiki/doc/tec/changelog\e[0m!\n"
    291294    else
    292         printf "  *** No comments found in files!\n"   
    293    
     295        printf "  *** No comments found in files!\n"
     296
    294297    fi
Note: See TracChangeset for help on using the changeset viewer.