-
Notifications
You must be signed in to change notification settings - Fork 24
/
autogen.sh
executable file
·35 lines (28 loc) · 1014 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#First need to build the configure script for jemalloc using autogen
cd libs/jemalloc
bash autogen.sh
cd ../..
CURRENT_DIR=`pwd`
echo Back in $CURRENT_DIR directory
#Rename jemalloc configure.ac file to prevent it from messing with autoconf configuration
if [ -e "./libs/jemalloc/configure.ac" ]
then
echo "Temporarily Renaming jemalloc configure.ac to prevent it from messing with autoconf"
mv ./libs/jemalloc/configure.ac ./libs/jemalloc/configure.ac_tmp
fi
#Run the autotools in order to obtain configure scripts
autoreconf --install
if [ -e "./libs/jemalloc/configure.ac_tmp" ]
then
mv ./libs/jemalloc/configure.ac_tmp ./libs/jemalloc/configure.ac
fi
# Create a man page and html README from the asciidoc using asciidoctor
asciidoctor -b html5 -o README.html README.adoc
asciidoctor -b manpage -d manpage -o igor.1 ./docs/man/igor_manpage.adoc
# Create the Doxygen documentation
doxygen doxygen.config
cd ./docs/latex/
make all
cd ../..
mv ./docs/latex/refman.pdf ./docs/IGoR_CPP_manual.pdf