From bcb54e6587715c37d4e15843e07e2e39cb60f129 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 24 Mar 2014 13:15:22 +0800 Subject: [PATCH] fix bug of package arm --- trunk/scripts/package-arm.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/trunk/scripts/package-arm.sh b/trunk/scripts/package-arm.sh index 4f104e85b..5eaa5a394 100755 --- a/trunk/scripts/package-arm.sh +++ b/trunk/scripts/package-arm.sh @@ -1,3 +1,12 @@ #!/bin/bash -bash package.sh arm +echo "argv[0]=$0" +if [[ ! -f $0 ]]; then + echo "directly execute the scripts on shell."; + work_dir=`pwd` +else + echo "execute scripts in file: $0"; + work_dir=`dirname $0`; work_dir=`(cd ${work_dir} && pwd)` +fi + +bash ${work_dir}/package.sh arm