Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

Building the Distribution


Using autoconf we need a configuration file configure.in which contains the version number and other relevant information. See below for an example configure.in

Each of the identified AC_OUTPUT files will be generated by the configure script from the corresponding files suffixed with .in by the ./configure script which is in turn generated by the autoconf command which reads information from configure.in

So, when you change the version number regenerate the configure script with:

  $ autoconf

Next time you ./configure the new Makefiles and source code will contain the updated information.

  $ ./configure

The Makefile.in in the base directory includes a target to generate a tar file for distribution:

  $ make dist

The resulting tar file will be named something like ./wajig-2.0.20.tar.gz. After making the distribution tar file move it to another directory for the convenience of the Debian packaging tools:

  $ mv wajig-0.1.1.tar.gz ../../debian/wajig/

An example configure.in is:

  dnl Process this file with autoconf to produce a configure script. 
  AC_INIT(src/wajig.py)

  PACKAGE=wajig
  VERSION=2.0.20

  AC_PATH_PROG(PYTHON, python)

  AC_SUBST(PYTHON)
  AC_SUBST(PACKAGE)
  AC_SUBST(VERSION)

  AC_PROG_INSTALL
  AC_PROG_MAKE_SET

  AC_OUTPUT(Makefile src/Makefile src/const.py wajig.sh)


Copyright © 1995-2006 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire