Bläddra i källkod

deb-substvars(5): codify how variables containing multiple lines must be managed

Raphaël Hertzog 16 år sedan
förälder
incheckning
8958324905
2 ändrade filer med 22 tillägg och 0 borttagningar
  1. 2 0
      debian/changelog
  2. 20 0
      man/deb-substvars.5

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ dpkg (1.15.7.2) UNRELEASED; urgency=low
 
   * Update dpkg-buildflags to respect $XDG_CONFIG_HOME and to use
     $XDG_CONFIG_HOME/dpkg/buildflags.conf by default.
+  * Update deb-substvars(5) to codify how variables containing multiple
+    lines must be managed.
 
  -- Raphaël Hertzog <hertzog@debian.org>  Fri, 23 Apr 2010 18:17:14 +0200
 

+ 20 - 0
man/deb-substvars.5

@@ -36,6 +36,26 @@ fields are used and needed during the build when the substitution did not
 yet occur. That's why you can't use variables in the \fBPackage\fP,
 \fBSource\fP and \fBArchitecture\fP fields.
 
+Variable substitution happens on the content of the fields after they have
+been parsed, thus if you want a variable to expand over multiple lines you
+do not have to include a space after the newline. This is done implicitly
+when the field is output. For example, if the variable
+\fB${Description}\fP is set to "foo is bar.${Newline}foo is
+great." and if you have the following field:
+
+ Description: foo application
+  ${Description}
+  .
+  More text.
+
+It will result in:
+
+ Description: foo application
+  foo is bar.
+  foo is great.
+  .
+  More text.
+
 Variables can be set using the
 .B \-V
 common option. They can be also specified in the file