Changeset 2235 for palm


Ignore:
Timestamp:
May 31, 2017 8:03:49 AM (7 years ago)
Author:
maronga
Message:

revised document_changes to allow to submit changes via a single svn commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/document_changes

    r2117 r2235  
    2525# -----------------
    2626# $Id$
     27# Changed the submission procedure in order to reduce the number of required
     28# commits to one per change.
     29#
     30# 2117 2017-01-16 16:28:44Z maronga
    2731#
    2832# 1827 2016-04-07 12:12:23Z maronga
     
    184188          if [[ "$comments" != "" && $line_count -eq $line_stop+2 ]]
    185189          then
     190            comments="$comment_char $line$comments"
    186191            timestamp=`echo $line | cut -d" " -s -f4-7`
    187             comments="$comment_char $timestamp$comments"
    188           fi
    189 
     192            timestamp_string="$comment_char $timestamp"
     193          fi
     194
     195         
     196         
     197         
    190198       done <"$fn"
    191199
     
    236244
    237245#
     246#--       remove leading \n characters in string
     247          comments=${comments:2}
     248 
     249 
     250         
     251#
     252#--       fix old time stamp
     253          (( line_time = line_stop + 2 ))
     254          sed -i "${line_time}d" $fn     
     255          sed -i "${line_time}i$timestamp_string" $fn
     256
     257
     258
     259#
    238260#--       insert comments to Former Revisions
    239           (( line_stop = line_stop + 4 ))
     261          (( line_stop = line_stop + 2 ))
    240262          sed -i "${line_stop}i$comments" $fn
     263         
     264
    241265
    242266#
     
    269293    if  [[ $count_changes -gt 0 ]]
    270294    then
    271        printf "  *** You can now proceed with\n      \e[0;91msvn commit -m 'last commit documented' trunk\e[0m\n"
     295       printf "  *** You can now proceed with\n      \e[0;91msvn commit -m 'your commit message' trunk\e[0m\n"
    272296       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"   
    273297    else
Note: See TracChangeset for help on using the changeset viewer.