delete dependance rpms for building to speed up git clone

Change-Id: I0e70a433021826335ead316ee299b03ab39685ad
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
This commit is contained in:
Zhijiang Hu 2016-05-04 11:13:06 +08:00
parent 6d25568a43
commit c6dfde3b1a
88 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
#! /bin/bash
log_path=compile-logs
mkdir -p $log_path
module=`ls | sed -n '/.rpm$/p'`
for mod in $module
do
module_name=`basename $mod .rpm`
already_install=`rpm -qi $module_name | grep "not installed" `
if [ "" == "$already_install" ] ; then
echo "$module_name already install..."
else
echo "install $module_name..."
rpm -ivh --nodeps $mod 1>$log_path/$mod.log 2>$log_path/$mod.err
fi
done
for module in $module
do
if [ -s $log_path/$mod.err ]; then
echo "compile environment installing has error..."
cat $log_path/$mod.err
exit 1
fi
done
echo "compile environment is successfully installed..."
exit 0