Next: Multiple distribution tree, Up: Examples
Lets suppose you have a simple source tree with one application, called 'foozbar' you wish to release. While you would probably suffice using Autoconf and Automake features you may still use Autodist.
First, you create the default 'distdir' into your software package:
autodist -i
Then, you create the 'configure.ad' file from your existing 'configure.ac' or 'configure.in' file. If you don't have configure script written yet, please refer to the Autoconf manual. In the 'configure.ad' you add as first macro in the file:
AD_INIT
Then, you create distribution file for your application:
# Foozbar distribution name Foozbar package foozbar bug-report foozbar-bugs@foo.z.bar define _DIST_FOOZBAR
This distribution file go into 'distdir/foozbar'.
And there you go. You have succesfully integrated Autodist into your source tree. If you need to do development and you wish to use the 'default' distribution for that, you should inherit the new 'foozbar' distribution in it. Add the following line in 'distdir/default':
inherit foozbar
After that, you can prepare the source tree for configuration and compilation by giving:
autodist
After this command you can give './configure' and 'make'.
If you want to do development directly in a tree prepared for the 'foozbar' distribution, or you are ready to start creating a new distribution package, you give:
autodist foozbar 1.0
After this command you can give './configure' and 'make'.
To create the distribution package, you will give:
makedist
The end result will be a 'foozbar-1.0.tar.gz' package.