|
From: | William Pursell |
Subject: | Re: Configuration management Debian-Automake-autoconf |
Date: | Fri, 06 Jul 2007 10:22:07 +0100 |
User-agent: | Icedove 1.5.0.12 (X11/20070607) |
Aslak Johannessen wrote:
I have recently been putting all of the relevant information in configure.ac, and letting configure build the package files. For example, debian/control.in will hold lines of the form: Description: @PACKAGE_SUMMARY@ @PACKAGE_DESCRIPTION_DEB@Hi thanks for the answer, this is in the direction of what i want! How exactly do i define new @address@hidden
Here's a simplified version. You need to format the description, and quoting can be a pain. I accomplish most of that by setting PACKAGE_DESCRIPTION_DEB to a file name, filter the text into that file, and then use AC_SUBST_FILE. $ grep -A 1 MY_INIT configure.ac MY_INIT( [short description], [long description]) $ cat m4/my_init.m4 AC_DEFUN([MY_INIT], [ PACKAGE_SUMMARY='$1' PACKAGE_DESCRIPTION='$2' AC_SUBST( PACKAGE_SUMMARY ) AC_SUBST( PACKAGE_DESCRIPTION ) ]) $ cat debian/control.in Description: @PACKAGE_SUMMARY@ @PACKAGE_DESCRIPTION@
[Prev in Thread] | Current Thread | [Next in Thread] |