From 89c90dbee8cbb343d93dfadb32cfccb62386eb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renan=20Gon=C3=A7alves?= Date: Fri, 27 Sep 2013 11:22:19 +0200 Subject: [PATCH] Creating the build directory when building linux local The build currently happens on wkhtmltopdf/static-build/linux-local, however the packer expects it to happen on wkhtmltopdf/static-build/linux-local/build as consequences builds for linux-local are failing right now. All the others builds happens on the `build` directory too. --- scripts/static-build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/static-build.sh b/scripts/static-build.sh index 6e73df387..af3700d75 100755 --- a/scripts/static-build.sh +++ b/scripts/static-build.sh @@ -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 @@ -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 }