Test gerrit review process on experimental branch.

Add a script to help to create common utils symbolic links for each driver
component.

Change-Id: I45914db6d366511235e0e9507bc000e50651c992
Closes-Bug: 1356720
This commit is contained in:
Le Tian Ren 2014-08-14 15:44:19 +08:00
parent 001d845aa1
commit 3e372a8143
1 changed files with 35 additions and 0 deletions

35
linkcommon.sh Executable file
View File

@ -0,0 +1,35 @@
# Copyright 2013 IBM Corp.
#!/bin/sh
#
# This script is for link powervc common code to each powervc modules.
#
target="common-powervc/powervc/common"
pushd .
cd $target && target=`pwd`
popd
declare -a components
declare -a linktopaths
components=(
nova
cinder
glance
neutron
);
pvc="powervc"
for ((i=0; i<${#components[@]}; i++));
do
linktopaths[$i]="${components[$i]}-$pvc/$pvc"
if [[ $1 == '-del' ]]; then
rm ${linktopaths[$i]}/common
else
ln -s $target ${linktopaths[$i]}
fi
done;