Small documentation for **FAUmachine** members how to build FAUmachine
from the repository:

Independent from the distribution you have to prepare the build with:

	./autogen.sh
	./configure

Then you can go on to the next step and build packages for your distribution:

Build RedHat compatible *.src.rpm file:
---------------------------------------

Call:

	./scripts/build.sh rpm

This will produce a file called

	faumachine-<version>-1.src.rpm

in the current working directory.

Build *.i386.rpm files (on a rpm-based system):
-----------------------------------------------

Call:

	rpm -hiv faumachine-<version>-1.src.rpm

Change to the RPM top directory:

	cd <topdir>

On RedHat-8.0 or RedHat-9 call:

	rpmbuild -ba SPECS/faumachine.spec

On SuSE-8.1 or SuSE-8.2 call:

	rpm -bb SPECS/faumachine.spec

This will generate the files

	RPMS/i386/faumachine*-<version>-1.i386.rpm

Build Debian compatible *.dsc and *.tar.gz files:
-------------------------------------------------

Call
	./scripts/build.sh deb

This will produce a files called

	faumachine_0.<version>.1.dsc
	faumachine_0.<version>.1.tar.gz

in the current working directory.

Build Debian binaries (on a Debian system):
-------------------------------------------

Unpack sources:

	dpkg-source -x faumachine_0.<version>.1.dsc

Build binaries:

	cd faumachine-0.<version>.1
	debuild binary
	cd ..

This will produce the files

	faumachine-*_0.<version>.1_i386.deb

Build source tarball:
---------------------

Call:
	./scripts/build.sh tar

This will produce a file called

	faumachine-<version>.src.tar.gz

Build binaries from source tarball:
-----------------------------------

Unpack tarball:

	tar zxvf faumachine-<version>.src.tar.gz

Build binaries by calling:

	cd FAUmachine-<version>
	./configure --prefix=/usr/local		(or similar, doesn't matter)
	make
	make prefix=`pwd`/Snapshot install
	cd Snapshot
	tar zcvf ../faumachine-<version>.bin.tar.gz .
	cd ..
	cd ..

This will produce the file

	faumachine-<version>.bin.tar.gz
