浏览代码

Pre-compile script: fix execution if lua is disabled in libvlc compilation

Felix Paul Kühne 9 年之前
父节点
当前提交
422f099028
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Pre-Compile.sh

+ 3 - 2
Pre-Compile.sh

@@ -277,8 +277,9 @@ echo "Building share folder..."
 echo ${VLC_BUILD_DIR}
 pbxcp="cp -R -L"
 mkdir -p ${target_share}
-if test "$use_archs" = "no"; then
+if test -d ${VLC_BUILD_DIR}/share/lua; then
     $pbxcp ${VLC_BUILD_DIR}/share/lua ${target_share}
-else
+fi
+if test -d ${main_build_dir}/share/lua; then
     $pbxcp ${main_build_dir}/share/lua ${target_share}
 fi