ref: 5c6995ca7fbf68c6ca097b113081343a470fa2a0
parent: f7fba4b122314aa717340a01809c6f7e1173e9b7
parent: 0d6764c62f123142ab289ce2efb94d4d1126922d
author: Licai Guo <licaguo@cisco.com>
date: Thu Mar 27 10:20:03 EDT 2014
Merge pull request #588 from varunbpatil/root_dir Attempt to change to root dir before executing python script
--- a/build/mktargets.sh
+++ b/build/mktargets.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+cd "$(git rev-parse --show-toplevel 2>/dev/null)" >/dev/null 2>&1
python build/mktargets.py --directory codec/decoder --library decoder
python build/mktargets.py --directory codec/encoder --library encoder --exclude DllEntry.cpp
python build/mktargets.py --directory codec/common --library common --exclude asm_inc.asm --exclude arm_arch_common_macro.S
@@ -10,3 +11,4 @@
python build/mktargets.py --directory test/decoder --prefix decoder_unittest
python build/mktargets.py --directory test/api --prefix api_test
python build/mktargets.py --directory gtest --library gtest --out build/gtest-targets.mk --cpp-suffix .cc --include gtest-all.cc
+cd - >/dev/null 2>&1