[texlive-new] Creating rules file from a single template
Hi Norbert, hi all,
I just had a look at tpm2deb-source.pl in texlive-new, and found this:
`eperl -d arch=$arch -d srcpackage=$package -dbinpackages="@{$SourcePackages{$package}}" $mydir/all/debian/rules.in > $debdest/rules`;
and in rules.in things like
<: if ($srcpackage eq "texlive-bin") { _:>//
build-stamp: patch-stamp
[...]
touch build-stamp
<: } else { _:>//
build-stamp: patch-stamp
touch build-stamp
<: } :>//
I severly doubt that this is a good approach in the long term. This
file would accumulate lots of special cases, and become hardly
readable. Just think about the things we will probably cross-port from
tetex, like texdoc.php with its apache configuration.
Or the things that I wanted to try right now, namely treating a couple
of files with ucf.
Of course this can all be done, and we could even add those commands to
all packages and just let them do nothing because no
"<package>.ucf-list" file is there or no "<package>.apache.conf.d"
file. But we'd end up creating something like cdbs, only specialised to
TeX.
I'd rather have a more modular structure, where the main rules file is
kept in all/debian (I'm fine with its being ePerl source), but other
parts are just added from parts in <package>/debian/
What do you think?
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: