From 428b018603a9e8e97fee61d2d8d56cc8ef091d4c Mon Sep 17 00:00:00 2001 From: "julien.malik@paraiso.me" Date: Wed, 4 Feb 2015 15:09:01 +0100 Subject: [PATCH] Update build_system_fr.md --- build_system_fr.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/build_system_fr.md b/build_system_fr.md index 508e5c89..67e908b7 100644 --- a/build_system_fr.md +++ b/build_system_fr.md @@ -41,11 +41,32 @@ $ yunohost-debhelper/setup_git_alias.sh ``` Ceci va configurer un nouvel alias git nommé `yunobump`, global (stocké dans `~/.gitconfig` et donc accessible depuis n'importe quel dépôt git local). -Pour mettre à jour une version dans `test` ou `stable`, exécuter simplement: +Pour mettre à jour une version dans `test` ou `stable`, le workflow habituel est le suivant : ```bash +# You will obviously need to clone once... +$ git clone git@github.com:YunoHost/yunohost-config-nginx.git +$ cd yunohost-config-nginx + +# Be sure to be up-to-date, and don't forget to get the tags ! +$ git fetch --tags + +# Checkout your branch : stable or test +$ git checkout test + +# Do your 'functional' modification : either merge daily in test, or merge test in stable +$ git pull daily + +# What is the current version number in test ? +$ dpkg-parsechangelog | grep "^Version" | cut -d ' ' -f 2 + +# Update changelog and do a proper tag $ git yunobump x.y.z-p + +# Push to GitHub +$ git push origin test ``` -Ceci a pour effet d'utiliser `git-dch` pour mettre à jour le changelog, et de créer un nouveau `tag` sur le commit modifiant le changelog. + +`git yunobump` a pour effet d'utiliser `git-dch` pour mettre à jour le changelog, et de créer un nouveau `tag` sur le commit modifiant le changelog. Le tag sera lui-même utilisé lors des exécutions ultérieures de git-dch pour connaître la nouvelle liste des commits à prendre en compte. Il doit donc avoir un format bien particulier, mais ceci est géré grâce à yunobump. **`TODO`** politique sur les numéros de version. git-dch ne supporte pas les ~ dans les numéros de version