#!/bin/bash echo "在Ubuntu12下面交叉编译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