2019-11-21 13:31:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-11-21 14:24:29 +00:00
|
|
|
# This bash script exports environment variables for the latest software
|
2019-11-21 13:31:28 +00:00
|
|
|
# versions
|
|
|
|
|
2019-11-21 16:33:24 +00:00
|
|
|
#export POPPLER_VERSION=poppler-0.82.0
|
|
|
|
export POPPLER_VERSION=poppler-0.81.0
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2019-11-21 16:33:24 +00:00
|
|
|
#export FONTFORGE_VERSION=20190801
|
|
|
|
export FONTFORGE_VERSION=20170731
|
2019-11-25 16:04:50 +00:00
|
|
|
|
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)"
|
|
|
|
fi
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2019-11-28 09:07:49 +00:00
|
|
|
export MACHINE_ARCH="$(uname -m)"
|
|
|
|
|
|
|
|
export BUILD_TIME="$(date +%Y_%m_%d-%H_%M_%S)"
|
2019-11-25 16:04:50 +00:00
|
|
|
|
2019-11-25 20:04:24 +00:00
|
|
|
export DOCKER_FROM=ubuntu:18.04
|
2019-11-25 11:19:44 +00:00
|
|
|
|
2019-11-28 09:07:49 +00:00
|
|
|
export DOCKER_NAME="$DOCKER_USERNAME/pdf2htmlex:$PDF2HTMLEX_BRANCH-$BUILD_TIME"
|
|
|
|
|
2019-11-28 10:34:38 +00:00
|
|
|
export APPIMAGE_NAME="pdf2htmlEX-$PDF2HTMLEX_BRANCH-$BUILD_TIME-$MACHINE_ARCH.AppImage"
|
2019-11-28 09:07:49 +00:00
|
|
|
|
2019-11-28 12:21:58 +00:00
|
|
|
echo "export POPPLER_VERSION=\"$POPPLER_VERSION\"" > buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export FONTFORGE_VERSION=\"$FONTFORGE_VERSION\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export PDF2HTMLEX_BRANCH=\"$PDF2HTMLEX_BRANCH\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export MACHINE_ARCH=\"$MACHINE_ARCH\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export BUILD_TIME=\"$BUILD_TIME\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export DOCKER_FROM=\"$DOCKER_FROM\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export DOCKER_NAME=\"$DOCKER_NAME\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
echo "export APPIMAGE_NAME=\"$APPIMAGE_NAME\"" >> buildScripts/reSourceVersionEnvs
|
|
|
|
|