mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
refactored install directory to PDF2HTMLEX_PREFIX
This commit is contained in:
parent
c46d2ad733
commit
8f496afa8b
@ -40,7 +40,7 @@ cd fontforge
|
|||||||
./bootstrap
|
./bootstrap
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr/local \
|
--prefix=$PDF2HTMLEX_PREFIX \
|
||||||
--enable-python-scripting=3 \
|
--enable-python-scripting=3 \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
|
@ -13,6 +13,8 @@ export MAKE_PARALLEL="-j $(nproc)"
|
|||||||
export PDF2HTMLEX_BRANCH=update-poppler
|
export PDF2HTMLEX_BRANCH=update-poppler
|
||||||
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
|
||||||
|
export PDF2HTMLEX_PREFIX=/usr/local
|
||||||
|
|
||||||
################
|
################
|
||||||
# do the build
|
# do the build
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@ export MAKE_PARALLEL="-j $(nproc)"
|
|||||||
export PDF2HTMLEX_BRANCH=update-poppler
|
export PDF2HTMLEX_BRANCH=update-poppler
|
||||||
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
|
||||||
|
export PDF2HTMLEX_PREFIX=toBeDetermined
|
||||||
|
|
||||||
################
|
################
|
||||||
# do the build
|
# do the build
|
||||||
|
|
||||||
|
@ -11,5 +11,5 @@ echo ""
|
|||||||
cd pdf2htmlEX
|
cd pdf2htmlEX
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX ..
|
||||||
make $MAKE_PARALLEL
|
make $MAKE_PARALLEL
|
||||||
|
@ -11,5 +11,5 @@ echo ""
|
|||||||
cd pdf2htmlEX
|
cd pdf2htmlEX
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
|
CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX ..
|
||||||
make $MAKE_PARALLEL
|
make $MAKE_PARALLEL
|
||||||
|
@ -11,10 +11,6 @@ echo ""
|
|||||||
cd poppler
|
cd poppler
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX \
|
||||||
-DENABLE_LIBOPENJPEG=none ..
|
-DENABLE_LIBOPENJPEG=none ..
|
||||||
make $MAKE_PARALLEL
|
make $MAKE_PARALLEL
|
||||||
|
|
||||||
cd ../../poppler-data
|
|
||||||
|
|
||||||
make install prefix=/usr/local
|
|
||||||
|
@ -41,11 +41,11 @@ wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/$LI
|
|||||||
|
|
||||||
chmod a+x $LINUX_DEPLOY_APP_IMAGE
|
chmod a+x $LINUX_DEPLOY_APP_IMAGE
|
||||||
|
|
||||||
./$LINUX_DEPLOY_APP_IMAGE \
|
./$LINUX_DEPLOY_APP_IMAGE \
|
||||||
-e appDir/usr/local/bin/pdf2htmlEX \
|
-e appDir/$PDF2HTMLEX_PREFIX/bin/pdf2htmlEX \
|
||||||
--create-desktop-file \
|
--create-desktop-file \
|
||||||
-i ../pdf2htmlEX/logo/pdf2htmlEX.svg \
|
-i ../pdf2htmlEX/logo/pdf2htmlEX.svg \
|
||||||
--appdir=appDir \
|
--appdir=appDir \
|
||||||
--output appimage
|
--output appimage
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ echo "export DOCKER_NAME=\"$DOCKER_NAME\"" >> buildScripts/reSourceVersi
|
|||||||
FROM $DOCKER_FROM
|
FROM $DOCKER_FROM
|
||||||
COPY ./ /
|
COPY ./ /
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
ENTRYPOINT ["/usr/local/bin/pdf2htmlEX"]
|
ENTRYPOINT ["$PDF2HTMLEX_PREFIX/bin/pdf2htmlEX"]
|
||||||
DOCKERFILE_HERE_DOC
|
DOCKERFILE_HERE_DOC
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -26,17 +26,22 @@ sudo make install
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
sudo mkdir -p /usr/local/include/poppler
|
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler
|
||||||
sudo cp poppler/*.h /usr/local/include/poppler
|
sudo cp poppler/*.h $PDF2HTMLEX_PREFIX/include/poppler
|
||||||
|
|
||||||
sudo mkdir -p /usr/local/include/poppler/goo
|
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/goo
|
||||||
sudo cp goo/*.h /usr/local/include/poppler/goo
|
sudo cp goo/*.h $PDF2HTMLEX_PREFIX/include/poppler/goo
|
||||||
|
|
||||||
sudo mkdir -p /usr/local/include/poppler/fofi
|
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/fofi
|
||||||
sudo cp fofi/*.h /usr/local/include/poppler/fofi
|
sudo cp fofi/*.h $PDF2HTMLEX_PREFIX/include/poppler/fofi
|
||||||
|
|
||||||
sudo mkdir -p /usr/local/include/poppler/splash
|
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/splash
|
||||||
sudo cp splash/*.h /usr/local/include/poppler/splash
|
sudo cp splash/*.h $PDF2HTMLEX_PREFIX/include/poppler/splash
|
||||||
|
|
||||||
sudo cp build/poppler/poppler-config.h \
|
sudo cp build/poppler/poppler-config.h \
|
||||||
/usr/local/include/poppler
|
$PDF2HTMLEX_PREFIX/include/poppler
|
||||||
|
|
||||||
|
cd ../poppler-data
|
||||||
|
|
||||||
|
sudo make install prefix=$PDF2HTMLEX_PREFIX
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user