Re: Configuration management Debian-Automake-autoconf

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

 



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 @VARIABLENAME@?

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@



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux