Next: Scenario 1, Up: How-to [Contents][Index]
Get the sources:
$ git clone git://git.savannah.nongnu.org/mediatex.git
Software requirements.
Here are the steps used to build the project from scratch:
$ autoscan $ autoreconf -i $ ./configure $ make V=0 $ make check V=0 $ make distcheck V=0
However this have to be adapt to be really functional for installation
or to enable debuging:
(see /usr/share/perl5/Debian/Debhelper/Buildsystem/autoconf.pm from debhelper)
$ ./configure \ --prefix=/usr \ --includedir=/usr/include \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/mediatex $ make CFLAGS="-Wall -g -D_FORTIFY_SOURCE=2 -O2" V=0 # make install # mediatex adm init
Other formats than GNU INFO of this documentation are also available from the sources (optional):
$ cd doc $ make html pdf # make install-html install-pdf
Someone may also prefers to build and install a DEBIAN package:
$ make dist $ tar -zxf mediatex-0.8.tar.gz $ mv mediatex-0.8.tar.gz mediatex_0.8.orig.tar.gz $ cd mediatex-0.8 $ cp -fr ../debian . $ dpkg-buildpackage -us -uc $ ls ..
The fully DEBIAN build process should finish using pbuilder
:
$ cd mediatex-0.8 $ cp -fr ../debian . # pbuilder create --distribution stretch \ --basetgz ../stretch.tgz \ --mirror http://ftp.fr.debian.org/debian # pdebuild --use-pdebuild-internal \ --debbuildopts -sa -- \ --basetgz ../stretch.tgz
Next, a test script automate the 6 following scenarios:
# /usr/share/mediatex/examples/tests.sh