2020-06-20 09:11:30 +00:00
|
|
|
#!/bin/sh
|
2019-11-21 13:31:28 +00:00
|
|
|
|
2020-06-20 09:11:30 +00:00
|
|
|
# This shell script exports environment variables for the latest software
|
2019-11-21 13:31:28 +00:00
|
|
|
# versions
|
|
|
|
|
2020-05-29 05:58:52 +00:00
|
|
|
# see: https://poppler.freedesktop.org/releases.html
|
2023-05-14 19:05:51 +00:00
|
|
|
# current working: 21.02.0
|
2020-05-29 05:58:52 +00:00
|
|
|
|
2020-08-19 18:47:13 +00:00
|
|
|
export PDF2HTMLEX_VERSION=0.18.8.rc2
|
2020-06-19 10:19:43 +00:00
|
|
|
|
2023-05-14 19:05:51 +00:00
|
|
|
export POPPLER_VERSION=poppler-21.02.0
|
|
|
|
#export POPPLER_VERSION=poppler-0.89.0
|
2020-05-30 21:19:25 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.88.0
|
2020-05-30 19:07:04 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.87.0
|
2020-05-30 18:48:06 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.86.1
|
2020-05-29 05:58:52 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.86.0
|
2020-05-30 15:26:11 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.85.0
|
2020-05-30 12:44:57 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.84.0
|
2020-05-30 09:55:35 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.83.0
|
2019-11-21 16:33:24 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.82.0
|
2019-12-13 09:24:01 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.81.0
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2020-05-29 05:58:52 +00:00
|
|
|
# see: https://github.com/fontforge/fontforge/releases
|
2023-05-14 19:05:51 +00:00
|
|
|
# current working: 20220308
|
2020-05-29 05:58:52 +00:00
|
|
|
|
2023-05-14 19:05:51 +00:00
|
|
|
export FONTFORGE_VERSION=20230101
|
|
|
|
#export FONTFORGE_VERSION=20220308
|
2020-05-30 06:20:37 +00:00
|
|
|
#export FONTFORGE_VERSION=20190801
|
2020-05-29 05:58:52 +00:00
|
|
|
#export FONTFORGE_VERSION=20190413
|
|
|
|
#export FONTFORGE_VERSION=20190413
|
|
|
|
#export FONTFORGE_VERSION=20190317
|
2019-12-09 10:45:13 +00:00
|
|
|
#export FONTFORGE_VERSION=20170731
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2020-08-19 09:46:43 +00:00
|
|
|
##################################################################
|
|
|
|
# Specify a working version of linuxDeploy to build the appImage
|
|
|
|
#
|
|
|
|
# see: https://github.com/linuxdeploy/linuxdeploy/issues/142#issuecomment-669910999
|
|
|
|
#
|
|
|
|
# The following is the most up to date version of linuxdeploy:
|
|
|
|
#
|
|
|
|
#export LINUX_DEPLOY_URL=https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous
|
|
|
|
#
|
|
|
|
# The following is a recent known to work version of linuxdeploy from 2020/Aug/05
|
|
|
|
#
|
|
|
|
export LINUX_DEPLOY_URL=https://artifacts.assassinate-you.net/artifactory/list/linuxdeploy/travis-456
|
|
|
|
|
|
|
|
###################################################################
|
|
|
|
|
2019-11-28 10:32:42 +00:00
|
|
|
if [ -z "$PDF2HTMLEX_BRANCH" ]; then
|
2019-11-28 10:28:03 +00:00
|
|
|
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
2019-11-29 09:43:07 +00:00
|
|
|
if [ -z "$PDF2HTMLEX_BRANCH" ]; then
|
|
|
|
echo ""
|
|
|
|
read -p "Enter the pdf2htmlEX branch or version: " PDF2HTMLEX_BRANCH
|
|
|
|
echo ""
|
2023-05-14 19:05:51 +00:00
|
|
|
if [ -z "$PDF2HTMLEX_BRANCH" ]; then
|
2019-11-29 09:43:07 +00:00
|
|
|
echo "PDF2HTMLEX_BRANCH not set... so we can not build anything."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2019-11-28 10:28:03 +00:00
|
|
|
fi
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2020-07-22 11:29:18 +00:00
|
|
|
# Following @ViliusSutkus89's suggestion in
|
|
|
|
# PR https://github.com/pdf2htmlEX/pdf2htmlEX/pull/77
|
|
|
|
# We have replaced the use of lsb-release/alpine-release
|
|
|
|
# with the freedesktop.org's os-release based system to
|
|
|
|
# obtain the distribution release information....
|
|
|
|
#
|
|
|
|
# See: https://www.freedesktop.org/software/systemd/man/os-release.html
|
|
|
|
#
|
|
|
|
if test -r /etc/os-release ; then
|
|
|
|
cat /etc/os-release
|
|
|
|
export BUILD_OS=$(grep '^ID=' /etc/os-release | cut -d'=' -f2)
|
|
|
|
export BUILD_DIST=$(grep '^VERSION_ID=' /etc/os-release | cut -d'=' -f2)
|
|
|
|
elif test -r /usr/lib/os-release ; then
|
|
|
|
cat /usr/lib/os-release
|
|
|
|
export BUILD_OS=$(grep '^ID=' /usr/lib/os-release | cut -d'=' -f2)
|
|
|
|
export BUILD_DIST=$(grep '^VERSION_ID=' /usr/lib/os-release | cut -d'=' -f2)
|
2020-06-20 09:11:30 +00:00
|
|
|
else
|
|
|
|
echo "FAILURE: could not determine release"
|
|
|
|
exit -1
|
|
|
|
fi
|
2019-11-28 09:07:49 +00:00
|
|
|
|
2020-06-19 11:17:14 +00:00
|
|
|
export BUILD_DATE="$(date +%Y%m%d)"
|
|
|
|
|
2019-11-28 09:07:49 +00:00
|
|
|
export BUILD_TIME="$(date +%Y_%m_%d-%H_%M_%S)"
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2020-06-06 08:15:01 +00:00
|
|
|
export MACHINE_ARCH="$(uname -m)"
|
|
|
|
|
2020-06-21 06:12:05 +00:00
|
|
|
export PDF2HTMLEX_NAME=$PDF2HTMLEX_VERSION-$PDF2HTMLEX_BRANCH-$BUILD_DATE-$BUILD_OS-$BUILD_DIST-$MACHINE_ARCH
|
|
|
|
|
|
|
|
echo "export PDF2HTMLEX_NAME=\"$PDF2HTMLEX_NAME\"" > buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export PDF2HTMLEX_VERSION=\"$PDF2HTMLEX_VERSION\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export POPPLER_VERSION=\"$POPPLER_VERSION\"" >> buildScripts/reSourceVersionEnvs
|
2020-06-19 10:37:25 +00:00
|
|
|
echo "export FONTFORGE_VERSION=\"$FONTFORGE_VERSION\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export PDF2HTMLEX_BRANCH=\"$PDF2HTMLEX_BRANCH\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export MACHINE_ARCH=\"$MACHINE_ARCH\"" >> buildScripts/reSourceVersionEnvs
|
2020-06-21 06:12:05 +00:00
|
|
|
echo "export BUILD_OS=\"$BUILD_OS\"" >> buildScripts/reSourceVersionEnvs
|
2020-06-19 10:37:25 +00:00
|
|
|
echo "export BUILD_DIST=\"$BUILD_DIST\"" >> buildScripts/reSourceVersionEnvs
|
2020-06-19 11:17:14 +00:00
|
|
|
echo "export BUILD_DATE=\"$BUILD_DATE\"" >> buildScripts/reSourceVersionEnvs
|
2020-06-19 10:37:25 +00:00
|
|
|
echo "export BUILD_TIME=\"$BUILD_TIME\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export PDF2HTMLEX_PREFIX=\"$PDF2HTMLEX_PREFIX\"" >> buildScripts/reSourceVersionEnvs
|
2020-08-19 09:46:43 +00:00
|
|
|
echo "export LINUX_DEPLOY_URL=\"$LINUX_DEPLOY_URL\"" >> buildScripts/reSourceVersionEnvs
|