<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Søren Hansen wrote:
<blockquote cite="mid1119515478.16261.26.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">tor, 23 06 2005 kl. 09:32 +0200, skrev Leslie Viljoen:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I don't properly understand how the "rules" file gets used. It get's written
with the aim of installing the package in &lt;whatever build 
dir&gt;/debian/&lt;package name&gt; -
but then when the package is built and installed, everything under 
&lt;package name&gt;
goes into the filesystem root.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Let's just imagine a package with just one file in it (forget about the
stuff in /usr/share/doc for a while). Let's call it foo and imagine it
belongs in /usr/bin.
In your source package directory, you have your foo file.
The rules file will install this into $(CURDIR)/debian/foo/usr/bin/foo
That's just the first step! The debian/foo directory is used to build
the actual package file. debian/foo is treated as the root, and
everything beneath it is put into the package without
the /home/....../debian/foo part. So when the package is in the archive
and you fetch it, it has NO idea that it was ever
in /home/blah/foo-0.1/debian/foo.

Did that help?

  </pre>
</blockquote>
That makes perfect sense. Thanks for the advice.<br>
<br>
Now is there a variable in the rules file that will give me the <br>
final /usr/share directory, like $(SHAREDIR), or can I hardcode that to
/usr/share?<br>
<br>
The package requires that the binary be executed from the <br>
/usr/share/tesseracttrainer/system directory, so on install I need to
create a <br>
script to change to that directory and then run the binary.<br>
<br>
It seems a bit unorthodox - if this is not the right way(tm), what do
you do<br>
in a situation like this? I know a program can access configure script<br>
variables by using #include config.h, but installation path info is not
in there. <br>
Is it somewhere else?<br>
<br>
Les<br>
<br>
</body>
</html>