annotate dev/doxygen/doxygen.sh @ 1220:4ccc42bf0284

misc: split .sh with .info
author David Demelier <markand@malikania.fr>
date Thu, 30 Sep 2021 09:26:38 +0200
parents 337f950c30f5
children a47aaf9743a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1107
diff changeset
1 #!/bin/sh
660
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 # TODO: add QT option
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
19
1220
4ccc42bf0284 misc: split .sh with .info
David Demelier <markand@malikania.fr>
parents: 1219
diff changeset
20 . ./doxygen.info
660
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
21
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 : ${CC:=clang}
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 : ${CFLAGS:=-O2}
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 : ${CXX:=clang++}
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 : ${CXXFLAGS:=-O2}
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
26
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
27 rm -rf $PKGNAME-$PKGVERSION
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
28 tar xvf $PKGNAME-$PKGVERSION.src.tar.gz
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
29 cd $PKGNAME-$PKGVERSION
660
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
30
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
31 mkdir build && cd build
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
32 cmake .. \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
33 -DCMAKE_BUILD_TYPE=Release \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
34 -DCMAKE_CXX_COMPILER="$CXX" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
35 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
36 -DCMAKE_C_COMPILER="$CC" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
37 -DCMAKE_C_FLAGS="$CFLAGS" \
1218
57dc83a39b13 misc: switch back to standard FHS
David Demelier <markand@malikania.fr>
parents: 1216
diff changeset
38 -DCMAKE_INSTALL_PREFIX=/usr
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
39 make
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
40 make install DESTDIR=$DESTDIR
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
41 cd ..
660
6900637ca719 dev/doxygen: initial import, closes #1247
David Demelier <markand@malikania.fr>
parents:
diff changeset
42
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
43 cd ..
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
44 rm -rf $PKGNAME-$PKGVERSION