winlin

fix bug of package arm

1 #!/bin/bash 1 #!/bin/bash
2 -bash package.sh arm  
3 2
  3 +echo "argv[0]=$0"
  4 +if [[ ! -f $0 ]]; then
  5 + echo "directly execute the scripts on shell.";
  6 + work_dir=`pwd`
  7 +else
  8 + echo "execute scripts in file: $0";
  9 + work_dir=`dirname $0`; work_dir=`(cd ${work_dir} && pwd)`
  10 +fi
  11 +
  12 +bash ${work_dir}/package.sh arm