mettre à jour CHANGES.md au lieu de le réécrire complètement
This commit is contained in:
		
							parent
							
								
									01c93ec71e
								
							
						
					
					
						commit
						90f92c74a3
					
				| @ -409,10 +409,6 @@ function _rscript_create_release_branch() { | ||||
| ## Release $Tag du $date | ||||
| " | ||||
|     _list_commits | _filter_changes | _format_md >>"$changelog" | ||||
|     if [ -s CHANGES.md ]; then | ||||
|         echo >>"$changelog" | ||||
|         cat CHANGES.md >>"$changelog" | ||||
|     fi | ||||
|     "${EDITOR:-nano}" +7 "$changelog" | ||||
|     [ -s "$changelog" ] || exit_with ewarn "Création de la release annulée" | ||||
| 
 | ||||
| @ -423,11 +419,18 @@ EOF | ||||
| 
 | ||||
|     # créer le changelog | ||||
|     _scripta "update CHANGES.md" <<EOF | ||||
| tmpchanges=/tmp/pman_CHANGES.$$.md | ||||
| $(qvals echo "$(awk <"$changelog" ' | ||||
| BEGIN { p = 0 } | ||||
| p == 0 && $0 == "" { p = 1; next } | ||||
| p == 1 { print } | ||||
| ')") >CHANGES.md | ||||
| ')") >"\$tmpchanges" | ||||
| if [ -s CHANGES.md ]; then | ||||
|   echo >>"\$tmpchanges" | ||||
|   cat CHANGES.md >>"\$tmpchanges" | ||||
| fi | ||||
| cat "\$tmpchanges" >CHANGES.md | ||||
| rm -f "\$tmpchanges" | ||||
| git add CHANGES.md | ||||
| EOF | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user