Skip to content

Commit

Permalink
Merge pull request wkhtmltopdf#25 from renan/patch-1
Browse files Browse the repository at this point in the history
Creating the build directory when building linux local
  • Loading branch information
antialize committed Sep 30, 2013
2 parents 8344e44 + 89c90db commit 0b16e22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/static-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ EOF
}

function packandcopylinux() {
mkdir -p ${BASE}/bin
mkdir -p ${BASE}/bin
WK=${BUILD}/linux-$1/build/wkhtmltopdf
rm -rf ${BASE}/bin/wkhtmltopdf-$1 ${BASE}/bin/wkhtmltoimage-$1 ${BASE}/bin/libwkhtmltopdf-$1.tar.lzma
${BUILD}/${UPX}/upx --best ${WK}/bin/wkhtmltopdf -o ${BASE}/bin/wkhtmltopdf-$1 || exit 1
Expand All @@ -192,11 +192,10 @@ function packandcopylinux() {

function build_linux_local() {
cd ${BUILD}
mkdir -p linux-local
cd linux-local
mkdir -p linux-local/build
cd linux-local/build
setup_build linux
./build.sh || exit 1
cd ..
packandcopylinux local
}

Expand Down

0 comments on commit 0b16e22

Please sign in to comment.