[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Backport to etch



Norbert Preining <preining@logic.at> wrote:

> But how are these
> 	${gnome:Version}
> expanded?

The corresponding variables are called "substvars" and defined in
debian/substvars (by default). They are expanded by dpkg-gencontrol,
dpkg-source and dpkg-genchanges.

All the info is in section VARIABLE SUBSTITUTION of dpkg-gencontrol(1):

  Before dpkg-source, dpkg-gencontrol  and  dpkg-genchanges  write  their
  control  information  (to  the source control file .dsc for dpkg-source
  and to standard output for dpkg-gencontrol  and  dpkg-genchanges)  they
  perform some variable substitutions on the output file.

  A  variable substitution has the form ${variable-name}.  Variable names
  consist of alphanumerics, hyphens and colons and start with an alphanu-
  meric.  Variable  substitutions are performed repeatedly until none are
  left; the full text of the field after the substitution is rescanned to
  look for more substitutions.

  After  all  the  substitutions  have  been  done each occurrence of the
  string ${} (which is not a legal substitution) is  replaced  with  a  $
  sign.

  Variables can be set using the -V common option. They can be also spec-
  ified in the file debian/substvars (or whatever other file is specified
  using  the  -T  option).  This  file  consists  of  lines  of  the form
  name=value.  Trailing whitespace on each line, blank lines,  and  lines
  starting with a # symbol (comments) are ignored.

  Additionally, the following standard variables are available:

  [...]

So, I think you should set them in the binary target of debian/rules
with something like "echo blabla >> debian/substvars" (>> is necessary
because the file is already used by debhelper).

Regards,

-- 
Florent



Reply to: