Compare commits
15 Commits
feature/xe
...
c0e3e542ff
Author | SHA1 | Date | |
---|---|---|---|
c0e3e542ff | |||
c0b15b9836 | |||
47f02ce6d2 | |||
63147ad374 | |||
945b3da9ad | |||
7348a63cd3 | |||
858bde16c6 | |||
d0d1fcb4bd | |||
2c8fd55a37 | |||
8d5a813a84 | |||
8d926f53a1 | |||
1a9077fa01 | |||
6213578981 | |||
4a3839e86b | |||
d41482375e |
5
hooks/build/doc-compiler/compile
Normal file
5
hooks/build/doc-compiler/compile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
pushd /src
|
||||||
|
make build
|
||||||
|
popd
|
10
hooks/containerbuild/doc-compiler/add-packages
Normal file
10
hooks/containerbuild/doc-compiler/add-packages
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile
|
||||||
|
echo 'RUN apt-get update && apt-get install --yes make' >> Dockerfile
|
||||||
|
echo 'RUN apt-get update && apt-get install --yes texlive-full python3-setuptools python-setuptools python3-pygments python-pygments fonts-liberation fonts-liberation2 rubber' >> Dockerfile
|
||||||
|
echo 'RUN apt-get update && apt-get install --yes pandoc' >> Dockerfile
|
||||||
|
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile
|
||||||
|
|
13
hooks/containerbuild/doc-compiler/add-resources
Normal file
13
hooks/containerbuild/doc-compiler/add-resources
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
|
||||||
|
if [ -e './datasets/fonts' ]
|
||||||
|
then
|
||||||
|
for font_file in $(find . -wholename "./datasets/fonts/*.ttf")
|
||||||
|
do
|
||||||
|
echo 'COPY datasets/fonts/$font_file /root/.fonts/$font_file' >> Dockerfile
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
exit 0
|
14
hooks/postbuild/doc-compiler/export-dist
Normal file
14
hooks/postbuild/doc-compiler/export-dist
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function move_output_to_dist {
|
||||||
|
find . -name "$1" -type f -print0 | xargs -0r mv -t /dist/
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create new directory
|
||||||
|
mkdir -p /dist
|
||||||
|
|
||||||
|
# Move generated files
|
||||||
|
move_output_to_dist "*.pdf"
|
||||||
|
|
||||||
|
tamarin_success "Done :-)"
|
||||||
|
|
4
hooks/prebuild/doc-compiler/complete-project-db
Normal file
4
hooks/prebuild/doc-compiler/complete-project-db
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd src
|
||||||
|
|
2
package
2
package
@ -74,6 +74,8 @@ if __name__ == "__main__":
|
|||||||
# Verify project directory
|
# Verify project directory
|
||||||
project_dir = os.path.abspath(args.project_directory)
|
project_dir = os.path.abspath(args.project_directory)
|
||||||
output_dir = os.path.abspath(args.output)
|
output_dir = os.path.abspath(args.output)
|
||||||
|
if not os.path.exists(output_dir):
|
||||||
|
os.mkdir(output_dir)
|
||||||
|
|
||||||
# Load build profile
|
# Load build profile
|
||||||
profile = tamarin.load_profile(args.profile, debug=args.debug)
|
profile = tamarin.load_profile(args.profile, debug=args.debug)
|
||||||
|
29
profiles/doc-compiler.conf
Normal file
29
profiles/doc-compiler.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Configuration générale du profil
|
||||||
|
[profile]
|
||||||
|
# Image Docker par défaut
|
||||||
|
default_image=ubuntu:focal
|
||||||
|
|
||||||
|
# Configuration de l’étape de pré-construction du conteneur
|
||||||
|
[containerbuild]
|
||||||
|
hooks=
|
||||||
|
containerbuild/doc-compiler/add-packages,
|
||||||
|
containerbuild/doc-compiler/add-resources,
|
||||||
|
|
||||||
|
# Configuration de l’étape de pré-compilation des documents
|
||||||
|
[prebuild]
|
||||||
|
hooks=
|
||||||
|
prebuild/debian/copy-sources-to-workspace,
|
||||||
|
prebuild/debian/run-project-hooks,
|
||||||
|
prebuild/debian/load-project-db,
|
||||||
|
prebuild/doc-compiler/complete-project-db,
|
||||||
|
|
||||||
|
# Configuration de l’étape de compilation du document
|
||||||
|
[build]
|
||||||
|
hooks=build/doc-compiler/compile
|
||||||
|
|
||||||
|
# Configuration de l’étape de post-compilation du document
|
||||||
|
[postbuild]
|
||||||
|
hooks=
|
||||||
|
postbuild/debian/run-project-hooks,
|
||||||
|
postbuild/doc-compiler/export-dist,
|
||||||
|
|
30
profiles/eole-2.9.0.conf
Normal file
30
profiles/eole-2.9.0.conf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Configuration générale du profil
|
||||||
|
[profile]
|
||||||
|
# Image Docker par défaut
|
||||||
|
default_image=ubuntu:jammy
|
||||||
|
|
||||||
|
# Configuration de l'étape de pré-construction du conteneur
|
||||||
|
[containerbuild]
|
||||||
|
hooks=
|
||||||
|
containerbuild/debian/install-build-essential,
|
||||||
|
containerbuild/debian/install-git,
|
||||||
|
|
||||||
|
# Configuration de l'étape de pré-construction du paquet
|
||||||
|
[prebuild]
|
||||||
|
hooks=
|
||||||
|
prebuild/debian/copy-sources-to-workspace,
|
||||||
|
prebuild/debian/run-project-hooks,
|
||||||
|
prebuild/debian/load-project-db,
|
||||||
|
prebuild/debian/complete-project-db,
|
||||||
|
prebuild/eole/create-changelog,
|
||||||
|
prebuild/debian/install-build-depends
|
||||||
|
|
||||||
|
# Configuration de l'étape de construction du paquet
|
||||||
|
[build]
|
||||||
|
hooks=build/debian/build
|
||||||
|
|
||||||
|
# Configuration de l'étape de post-construction du paquet
|
||||||
|
[postbuild]
|
||||||
|
hooks=
|
||||||
|
postbuild/debian/run-project-hooks,
|
||||||
|
postbuild/debian/export-dist
|
28
profiles/pypi-2.7.2.conf
Normal file
28
profiles/pypi-2.7.2.conf
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Configuration générale du profil
|
||||||
|
[profile]
|
||||||
|
# Image Docker par défaut
|
||||||
|
default_image=ubuntu:bionic
|
||||||
|
|
||||||
|
# Configuration de l'étape de pré-construction du conteneur
|
||||||
|
[containerbuild]
|
||||||
|
hooks=
|
||||||
|
containerbuild/debian/install-build-essential,
|
||||||
|
containerbuild/ubuntu/install-stdeb,
|
||||||
|
|
||||||
|
# Configuration de l'étape de pré-construction du paquet
|
||||||
|
[prebuild]
|
||||||
|
hooks=
|
||||||
|
prebuild/debian/copy-sources-to-workspace,
|
||||||
|
prebuild/debian/run-project-hooks,
|
||||||
|
prebuild/debian/load-project-db,
|
||||||
|
|
||||||
|
# Configuration de l'étape de construction du paquet
|
||||||
|
[build]
|
||||||
|
hooks=build/stdeb/build
|
||||||
|
|
||||||
|
# Configuration de l'étape de post-construction du paquet
|
||||||
|
[postbuild]
|
||||||
|
hooks=
|
||||||
|
postbuild/debian/run-project-hooks,
|
||||||
|
postbuild/debian/export-dist
|
||||||
|
|
Reference in New Issue
Block a user