Re: Examples for CDDtool
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05-07-2005 12:02, Andreas Tille wrote:
> On Tue, 5 Jul 2005, Sergio Talens-Oliag wrote:
>
>> Not really important, I can change the default to tasks without problem,
>
> I might be biased for historical reasons but in the directory you can find
> definitions of "tasks" - that's why I have a slight preference. Just find
> a final conclusion - I'll adopt if necessary.
>
>> anyway it has the same solution as before, if you want to use a
>> description
>> file different than "desc/all" you can put:
>>
>> export DESC=tasks/all
>
> Great flexibility, but I would prefer to use just the default in my
> packages
> (whatever it is).
With the attached cdbs file (both plain file and diff attached - don't
know what you prefer), default DESC is applied except when overridden
like this (which is common cdbs style):
- --- BEGIN debian/rules ---
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/cddtk-meta.mk
# We use a weird location for the CDD description file
DEB_CDD_DESC=debian/cdd-descr.iption
- --- END debian/rules ---
> I convinced you to the common cdbs script for cddtk when you were not
> absolutely
> sure about it, but once this is in a dependency would make sense, IMHO.
I feel pretty much at home with cdbs (I wrote the python file you borrow
from :-) ), so tell me what you want and I'll do the coding for you. :-)
As an example I believe debscripts/cdbs-helper is better incorporated
into cdbs/cddtk-meta.mk itself: cdbs scripts are supposed to not pull in
dependencies on their own.
Oh, and I suggest renaming from "cddtk-meta.mk" to just "cdd.mk" as the
cdbs names usually relate to the target area rather than the specifik
tool to get there (like "perlmodule" instead of "makemaker-pm", and
"kde.mk").
- Jonas
- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
- Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCynxln7DbMsAkQLgRAoINAJwIW7GKDyqRUAHoNZh3AOmd3nYt/QCfSSKg
YUGPGSPCtg/vnPqUYL/fbvQ=
=v21u
-----END PGP SIGNATURE-----
# -*- mode: makefile; coding: utf-8 -*-
# Makefile for cddtk metapackages... dirty hack right now, should follow the
# cdbs rules.
# Copyright © 2005 Sergio Talens-Oliag <sto@debian.org>
DEB_CDD_DESC=tasks/all
include /usr/share/cdbs/1/rules/debhelper.mk
common-install-prehook-indep::
# Generate /etc/CDD/version and /etc/CDD/tasks/TASK/version files
DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper vfiles
# Generate contol files for all tasks
DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper control
common-binary-predeb-indep::
# Generate substvars for all the packages
DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper substvars
--- cddtk-meta.mk.orig 2005-07-05 12:37:47.000000000 +0200
+++ cddtk-meta.mk 2005-07-05 14:02:23.000000000 +0200
@@ -2,12 +2,16 @@
# Makefile for cddtk metapackages... dirty hack right now, should follow the
# cdbs rules.
# Copyright © 2005 Sergio Talens-Oliag <sto@debian.org>
+
+DEB_CDD_DESC=tasks/all
+
include /usr/share/cdbs/1/rules/debhelper.mk
+
common-install-prehook-indep::
# Generate /etc/CDD/version and /etc/CDD/tasks/TASK/version files
- /usr/lib/cddtk/debscripts/cdbs-helper vfiles
+ DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper vfiles
# Generate contol files for all tasks
- /usr/lib/cddtk/debscripts/cdbs-helper control
+ DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper control
common-binary-predeb-indep::
# Generate substvars for all the packages
- /usr/lib/cddtk/debscripts/cdbs-helper substvars
+ DESC="$(DEB_CDD_DESC)" /usr/lib/cddtk/debscripts/cdbs-helper substvars
Reply to: