From 2d83e4561a1d080d87cb415391160155aa36c67f Mon Sep 17 00:00:00 2001 From: Varun B Patil Date: Mon, 20 Jan 2014 21:51:21 +0530 Subject: [PATCH] Don't execute mktargets.py if cannot cd into correct directory --- build/mktargets.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/build/mktargets.sh b/build/mktargets.sh index 8664ed62..1396c466 100755 --- a/build/mktargets.sh +++ b/build/mktargets.sh @@ -1,11 +1,10 @@ #!/bin/sh -(cd codec/decoder; python ../../build/mktargets.py --directory codec/decoder --library decoder --exclude StdAfx.cpp) -(cd codec/encoder; python ../../build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp) -(cd codec/common; python ../../build/mktargets.py --directory codec/common --library common) -(cd codec/processing; python ../../build/mktargets.py --directory codec/processing --library processing --exclude wels_process.cpp --exclude WelsVideoProcessor.cpp) - -(cd codec/console/dec; python ../../../build/mktargets.py --directory codec/console/dec --binary h264dec --exclude dec_console.h --exclude load_bundle_functions.cpp) -(cd codec/console/enc; python ../../../build/mktargets.py --directory codec/console/enc --binary h264enc --exclude enc_console.h --exclude bundlewelsenc.cpp) -(cd test; python ../build/mktargets.py --directory test --binary codec_unittest) -(cd gtest; python ../build/mktargets.py --directory gtest --library gtest --out ../build/gtest-targets.mk --cpp-suffix .cc --include gtest-all.cc) +(cd codec/decoder && python ../../build/mktargets.py --directory codec/decoder --library decoder --exclude StdAfx.cpp) +(cd codec/encoder && python ../../build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp) +(cd codec/common && python ../../build/mktargets.py --directory codec/common --library common) +(cd codec/processing && python ../../build/mktargets.py --directory codec/processing --library processing --exclude wels_process.cpp --exclude WelsVideoProcessor.cpp) +(cd codec/console/dec && python ../../../build/mktargets.py --directory codec/console/dec --binary h264dec --exclude dec_console.h --exclude load_bundle_functions.cpp) +(cd codec/console/enc && python ../../../build/mktargets.py --directory codec/console/enc --binary h264enc --exclude enc_console.h --exclude bundlewelsenc.cpp) +(cd test && python ../build/mktargets.py --directory test --binary codec_unittest) +(cd gtest && python ../build/mktargets.py --directory gtest --library gtest --out ../build/gtest-targets.mk --cpp-suffix .cc --include gtest-all.cc)