2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
16 path: path of the souce code, default : './'
23 local dir=${file%.tar.gz}
26 if [ -e "configure" ]; then
29 if [ -e "Makefile" ]; then
31 echo "install $dir successfully"
33 echo "install $dir failed"
50 for file in $(ls *.tar.gz);do