From 888d49d07a676c27663dc97fa0bd38243ba3da45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 12 Mar 2012 16:10:29 +0100 Subject: easy_e17.sh: fix ewebkit cleanning and building --- easy_e17.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/easy_e17.sh b/easy_e17.sh index debab7b..74f576e 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -1050,9 +1050,10 @@ function compile () if [ $package_clean -ge 1 ]; then [ -e config.cache ] && rm config.cache if [ "$name" == "ewebkit" ]; then - if [ $package_clean -eq 1 -a -e "$ewk_build_dir" ]; then + if [ $package_clean -eq 1 -a -e "$ewk_build_dir" -a -e "$ewk_build_dir/Makefile" ]; then cd $ewk_build_dir - run_command "$name" "$path" "clean" "clean : " "$mode" "$make -j $threads clean" + run_command "$name" "$ewk_build_dir" "path" "path: " "$mode" "pwd" + run_command "$name" "$ewk_build_dir" "clean" "clean : " "$mode" "$make -j $threads clean" if [ ! -e "$status_path/$name.noerrors" ]; then if [ "$skip_errors" ]; then write_appname "$name" "hidden" # clean might fail, that's ok @@ -1120,11 +1121,13 @@ function compile () fi done if [ "$name" == "ewebkit" ]; then - if [ $package_make_only != 1 ] || [ $package_clean -gt 1 ]; then + if [ $package_make_only != 1 ] || [ $package_clean -gt 1 ] || [ ! -e "$ewk_build_dir/Makefile" ]; then run_command "$name" "$path" "cmake" "cmake : " "$mode" "$ewk_build_cmd" if [ ! -e "$status_path/$name.noerrors" ] ; then return ; fi fi cd "${ewk_build_dir}" + run_command "$name" "NOT USED" "make" "make: " "$mode" "$make" + if [ ! -e "$status_path/$name.noerrors" ] ; then return ; fi run_command "$name" "NOT USED" "install" "install: " "rootonly" "$make install" if [ ! -e "$status_path/$name.noerrors" ] ; then return ; fi elif [ -e "CMakeLists.txt" ]; then -- cgit v1.1-2-g2b99