2019-12-17 06:15:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This bash script builds the complete pdf2htmlEX application LOCALLY
|
|
|
|
# (It does not create the AppImage or Docker images)
|
|
|
|
|
|
|
|
# Adjust the following two environment variables to suit your needs
|
|
|
|
#
|
|
|
|
export UNATTENDED="--assume-yes"
|
|
|
|
export MAKE_PARALLEL="-j $(nproc)"
|
|
|
|
|
|
|
|
# choose one of the following...
|
|
|
|
#
|
2020-06-02 04:14:34 +00:00
|
|
|
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
|
|
|
|
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2019-12-17 17:24:05 +00:00
|
|
|
# The following environment variable determines where the poppler,
|
|
|
|
# poppler-data, fontforge and pdf2htmlEX packages are installed.
|
|
|
|
# CHANGE IT TO SUIT YOUR NEEDS:
|
|
|
|
#
|
2019-12-17 16:23:39 +00:00
|
|
|
export PDF2HTMLEX_PREFIX=/usr/local
|
|
|
|
|
2020-06-03 12:17:44 +00:00
|
|
|
# Ensure all Apt packages are installed with no user interaction
|
|
|
|
#
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
set -ev
|
|
|
|
|
2019-12-17 06:15:03 +00:00
|
|
|
################
|
|
|
|
# do the build
|
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/versionEnvs
|
|
|
|
|
|
|
|
./buildScripts/reportEnvs
|
|
|
|
|
|
|
|
./buildScripts/getBuildTools
|
|
|
|
|
|
|
|
./buildScripts/getDevLibraries
|
|
|
|
|
|
|
|
./buildScripts/getPoppler
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/buildPoppler
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/getFontforge
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/buildFontforge
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/buildPdf2htmlEX
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
./buildScripts/installPdf2htmlEX
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
#./buildScripts/createAppImage
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-19 16:20:53 +00:00
|
|
|
#./buildScripts/createDockerUbuntuImageFromDeb
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
#./buildScripts/uploadGitHubRelease
|
2019-12-17 06:15:03 +00:00
|
|
|
|
2020-06-02 18:45:29 +00:00
|
|
|
#./buildScripts/uploadDockerImage
|