diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-04-20 14:08:16 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-04-20 14:08:16 +0200 |
commit | 1bf6ef42e015775d4171e0874293df608123989b (patch) | |
tree | 6885dd84841befa61ddb98c5eecd1b528887f134 /docs | |
parent | a03af0d14e9b57e1650966806c5f6ba3ac943609 (diff) |
docs: use [DEFAULT] section in import example
so it also fits the "gbp dch" usecase
Diffstat (limited to 'docs')
-rw-r--r-- | docs/chapters/import.sgml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/chapters/import.sgml b/docs/chapters/import.sgml index c401b916..6a7e0fb9 100644 --- a/docs/chapters/import.sgml +++ b/docs/chapters/import.sgml @@ -269,14 +269,18 @@ EOF like: </para> <programlisting> -[buildpackage] +[DEFAULT] upstream-tag = v%(version)s </programlisting> <para> <replaceable>version</replaceable> will be replaced with the upstream version number as determined from <filename>debian/changelog</filename>. The <replaceable>%()s</replaceable> - might be familiar from &pyformat;s. + might be familiar from &pyformat;s. The option was placed in + the <emphasis>[DEFAULT]</emphasis> section instead of + the <emphasis>[buildpackage]</emphasis> section of the + configuration so other tools like &gbp-dch; make use of it + too. </para> <para> @@ -289,7 +293,7 @@ upstream-tag = v%(version)s follows: </para> <programlisting> -[buildpackage] +[DEFAULT] upstream-tag = v%(version%.%_)s </programlisting> <para> |