mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
refactored use of set ev
This commit is contained in:
parent
f1828789f6
commit
3e835a38e2
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script build FontForge
|
# This bash script build FontForge
|
||||||
|
|
||||||
source buildScripts/reSourceVersionEnvs
|
source buildScripts/reSourceVersionEnvs
|
||||||
@ -12,6 +10,8 @@ echo "BUILDING FontForge (using CMake)"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd fontforge
|
cd fontforge
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script builds pdf2htmlEX
|
# This bash script builds pdf2htmlEX
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo "BUILDING pdf2htmlEX (using gcc)"
|
echo "BUILDING pdf2htmlEX (using gcc)"
|
||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd pdf2htmlEX
|
cd pdf2htmlEX
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
@ -8,6 +8,8 @@ echo "BUILDING pdf2htmlEX (using CLang)"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd pdf2htmlEX
|
cd pdf2htmlEX
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script builds the latest poppler
|
# This bash script builds the latest poppler
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@ -10,6 +8,8 @@ echo "BUILDING Poppler (using CMake)"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd poppler
|
cd poppler
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@ -37,11 +37,11 @@ cmake \
|
|||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DRUN_GPERF_IF_PRESENT=OFF \
|
-DRUN_GPERF_IF_PRESENT=OFF \
|
||||||
-DEXTRA_WARN=OFF \
|
-DEXTRA_WARN=OFF \
|
||||||
-DENABLE_JPEG=ON \
|
-DWITH_JPEG=ON \
|
||||||
-DENABLE_PNG=ON \
|
-DWITH_PNG=ON \
|
||||||
-DENABLE_TIFF=OFF \
|
-DWITH_TIFF=OFF \
|
||||||
-DENABLE_NSS=OFF \
|
-DWITH_NSS=OFF \
|
||||||
-DENABLE_Cairo=ON \
|
-DWITH_Cairo=ON \
|
||||||
..
|
..
|
||||||
|
|
||||||
make $MAKE_PARALLEL
|
make $MAKE_PARALLEL
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
|
|
||||||
# This bash script clean all pdf2htmlEX build products
|
# This bash script clean all pdf2htmlEX build products
|
||||||
|
|
||||||
|
|
||||||
cd pdf2htmlEX
|
cd pdf2htmlEX
|
||||||
rm -rf build pdf2htmlEX.1 share/*.css share/*.js share/*.min.* src/pdf2htmlEX-config.h src/util/css_const.h
|
rm -rf build pdf2htmlEX.1 share/*.css share/*.js share/*.min.* src/pdf2htmlEX-config.h src/util/css_const.h
|
||||||
|
@ -10,6 +10,8 @@ echo "CREATING pdf2htmlEX AppImage"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
# For appimage output plugin
|
# For appimage output plugin
|
||||||
#
|
#
|
||||||
export VERSION="$PDF2HTMLEX_BRANCH-$BUILD_TIME"
|
export VERSION="$PDF2HTMLEX_BRANCH-$BUILD_TIME"
|
||||||
|
@ -12,6 +12,8 @@ echo ""
|
|||||||
|
|
||||||
source /etc/lsb-release
|
source /etc/lsb-release
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
export DPKG_NAME="pdf2htmlEX-$PDF2HTMLEX_BRANCH-$BUILD_TIME-$MACHINE_ARCH-$DISTRIB_CODENAME.deb"
|
export DPKG_NAME="pdf2htmlEX-$PDF2HTMLEX_BRANCH-$BUILD_TIME-$MACHINE_ARCH-$DISTRIB_CODENAME.deb"
|
||||||
|
|
||||||
echo "export DPKG_NAME=\"$DPKG_NAME\"" >> buildScripts/reSourceVersionEnvs
|
echo "export DPKG_NAME=\"$DPKG_NAME\"" >> buildScripts/reSourceVersionEnvs
|
||||||
|
@ -14,6 +14,7 @@ source buildScripts/reSourceVersionEnvs
|
|||||||
|
|
||||||
source buildScripts/dockerFunctions
|
source buildScripts/dockerFunctions
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
mkdir -p imageBuild/dockerDir
|
mkdir -p imageBuild/dockerDir
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
# This bash script creates the pdf2htmlEX AppImage and Docker Images
|
# This bash script creates the pdf2htmlEX AppImage and Docker Images
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script automates getting the required build tools (apt install)
|
# This bash script automates getting the required build tools (apt install)
|
||||||
|
|
||||||
# set the bash environment variable 'UNATTENDED' to '--assume-yes' for
|
# set the bash environment variable 'UNATTENDED' to '--assume-yes' for
|
||||||
@ -14,6 +12,8 @@ echo " (UNATTENDED: [$UNATTENDED])"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get $UNATTENDED install \
|
sudo apt-get $UNATTENDED install \
|
||||||
aptitude \
|
aptitude \
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script automates getting the required build tools (brew install)
|
# This bash script automates getting the required build tools (brew install)
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@ -10,6 +8,8 @@ echo "INSTALLING Build Tools (using Home/Linux Brew)"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
brew update
|
brew update
|
||||||
brew install \
|
brew install \
|
||||||
git \
|
git \
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script automates getting the development libraries required to
|
# This bash script automates getting the development libraries required to
|
||||||
# build poppler and fontforge
|
# build poppler and fontforge
|
||||||
|
|
||||||
@ -15,6 +13,8 @@ echo " (UNATTENDED: [$UNATTENDED])"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get $UNATTENDED install \
|
sudo apt-get $UNATTENDED install \
|
||||||
libcairo-dev \
|
libcairo-dev \
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script automates getting the development libraries required to
|
# This bash script automates getting the development libraries required to
|
||||||
# build poppler and fontforge (using Home/Linux Brew)
|
# build poppler and fontforge (using Home/Linux Brew)
|
||||||
|
|
||||||
@ -11,6 +9,8 @@ echo "INSTALLING development libraries (using Home/Linux Brew)"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
brew update
|
brew update
|
||||||
brew install \
|
brew install \
|
||||||
cairo \
|
cairo \
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script gets and unpacks the latest fontforge AppImage
|
# This bash script gets and unpacks the latest fontforge AppImage
|
||||||
|
|
||||||
source buildScripts/reSourceVersionEnvs
|
source buildScripts/reSourceVersionEnvs
|
||||||
@ -13,6 +11,8 @@ echo " (FONTFORGE_VERSION: [$FONTFORGE_VERSION])"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
FONTFORGE_SRC=$FONTFORGE_VERSION.tar.gz
|
FONTFORGE_SRC=$FONTFORGE_VERSION.tar.gz
|
||||||
|
|
||||||
rm -rf $FONTFORGE_SRC
|
rm -rf $FONTFORGE_SRC
|
||||||
|
@ -12,6 +12,7 @@ echo " (PDF2HTMLEX_BRANCH: [$PDF2HTMLEX_BRANCH])"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
|
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ echo " (PDF2HTMLEX_BRANCH: [$PDF2HTMLEX_BRANCH])"
|
|||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
|
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script gets and unpacks the latest Poppler source code
|
# This bash script gets and unpacks the latest Poppler source code
|
||||||
|
|
||||||
source buildScripts/reSourceVersionEnvs
|
source buildScripts/reSourceVersionEnvs
|
||||||
@ -21,6 +19,8 @@ rm -rf poppler
|
|||||||
rm -rf poppler-data-0.4.9.tar.gz
|
rm -rf poppler-data-0.4.9.tar.gz
|
||||||
rm -rf poppler-data
|
rm -rf poppler-data
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
wget https://poppler.freedesktop.org/$POPPLER_VERSION.tar.xz
|
wget https://poppler.freedesktop.org/$POPPLER_VERSION.tar.xz
|
||||||
|
|
||||||
tar xvf $POPPLER_VERSION.tar.xz
|
tar xvf $POPPLER_VERSION.tar.xz
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo "INSTALLING FontForge locally"
|
echo "INSTALLING FontForge locally"
|
||||||
@ -21,6 +19,8 @@ if [ -z "$UNATTENDED" ] ; then
|
|||||||
read -p "Type anything else to continue: "
|
read -p "Type anything else to continue: "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd fontforge
|
cd fontforge
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo ldconfig;
|
sudo ldconfig;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------"
|
||||||
echo "INSTALLING pdf2htmlEX locally"
|
echo "INSTALLING pdf2htmlEX locally"
|
||||||
@ -19,6 +17,8 @@ if [ -z "$UNATTENDED" ] ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd pdf2htmlEX/build
|
cd pdf2htmlEX/build
|
||||||
|
|
||||||
sudo make install
|
sudo make install
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
# This bash script installs Poppler into the local system
|
# This bash script installs Poppler into the local system
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@ -23,6 +21,8 @@ if [ -z "$UNATTENDED" ] ; then
|
|||||||
read -p "Type anything else to continue: "
|
read -p "Type anything else to continue: "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
cd poppler/build
|
cd poppler/build
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
@ -2,22 +2,24 @@
|
|||||||
|
|
||||||
# This bash script builds everyting on an TravisCI Linux (Ubunutu) worker
|
# This bash script builds everyting on an TravisCI Linux (Ubunutu) worker
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
export UNATTENDED="--assume-yes"
|
export UNATTENDED="--assume-yes"
|
||||||
export MAKE_PARALLEL="-j $(nproc)"
|
export MAKE_PARALLEL="-j $(nproc)"
|
||||||
|
|
||||||
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
|
||||||
./buildScripts/versionEnvs || travis_terminate 1;
|
./buildScripts/versionEnvs
|
||||||
./buildScripts/reportEnvs || travis_terminate 1;
|
./buildScripts/reportEnvs
|
||||||
./buildScripts/getBuildToolsApt || travis_terminate 1;
|
./buildScripts/getBuildToolsApt
|
||||||
./buildScripts/getDevLibrariesApt || travis_terminate 1;
|
./buildScripts/getDevLibrariesApt
|
||||||
./buildScripts/getPoppler || travis_terminate 1;
|
./buildScripts/getPoppler
|
||||||
./buildScripts/buildPoppler || travis_terminate 1;
|
./buildScripts/buildPoppler
|
||||||
./buildScripts/getFontforge || travis_terminate 1;
|
./buildScripts/getFontforge
|
||||||
./buildScripts/buildFontforge || travis_terminate 1;
|
./buildScripts/buildFontforge
|
||||||
./buildScripts/buildPdf2htmlEX || travis_terminate 1;
|
./buildScripts/buildPdf2htmlEX
|
||||||
./buildScripts/installPdf2htmlEX || travis_terminate 1;
|
./buildScripts/installPdf2htmlEX
|
||||||
#./buildScripts/createAppImage || travis_terminate 1;
|
#./buildScripts/createAppImage
|
||||||
#./buildScripts/createDockerImage || travis_terminate 1;
|
#./buildScripts/createDockerImage
|
||||||
#./buildScripts/uploadGitHubRelease || travis_terminate 1;
|
#./buildScripts/uploadGitHubRelease
|
||||||
#./buildScripts/uploadDockerImage || travis_terminate 1;
|
#./buildScripts/uploadDockerImage
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
################
|
################
|
||||||
# do the uploads
|
# do the uploads
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
|
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
|
||||||
|
|
||||||
./buildScripts/uploadGitHubRelease || { echo 'uploadGitHubRelease FAILED' ; exit 1 ; }
|
./buildScripts/uploadGitHubRelease || { echo 'uploadGitHubRelease FAILED' ; exit 1 ; }
|
||||||
|
Loading…
Reference in New Issue
Block a user