ソースを参照

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

Raphaël Hertzog 16 年 前
コミット
8958324905
共有2 個のファイルを変更した22 個の追加0 個の削除を含む
  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
   * Update dpkg-buildflags to respect $XDG_CONFIG_HOME and to use
     $XDG_CONFIG_HOME/dpkg/buildflags.conf by default.
     $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
  -- 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,
 yet occur. That's why you can't use variables in the \fBPackage\fP,
 \fBSource\fP and \fBArchitecture\fP fields.
 \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
 Variables can be set using the
 .B \-V
 .B \-V
 common option. They can be also specified in the file
 common option. They can be also specified in the file