aboutsummaryrefslogtreecommitdiffstats
path: root/fuel-plugin-vsperf/pre_build_hook
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-05-20 10:35:39 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2016-05-20 14:33:48 +0800
commit5df5198c8b178debaf0e7190a42fa6cc2851b633 (patch)
tree05aab8a150e258a02b94c25c092f2656d833f6e8 /fuel-plugin-vsperf/pre_build_hook
parentcc5df3ec2038249425c8313bdb73add3d1268b09 (diff)
Rebase to fuel 9.0 and add vagrant based build and enhance some scripts
Change-Id: Id3a38d662c330cd388c6509c9d6e90409c1da6e7 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'fuel-plugin-vsperf/pre_build_hook')
-rwxr-xr-xfuel-plugin-vsperf/pre_build_hook14
1 files changed, 2 insertions, 12 deletions
diff --git a/fuel-plugin-vsperf/pre_build_hook b/fuel-plugin-vsperf/pre_build_hook
index 12517bcc..b4da204f 100755
--- a/fuel-plugin-vsperf/pre_build_hook
+++ b/fuel-plugin-vsperf/pre_build_hook
@@ -7,22 +7,14 @@
set -eux
-VSPERF_REV=${VSPERF_REV:-stable/brahmaputra}
BUILD_FOR=${BUILD_FOR:-ubuntu}
DIR="$(dirname `readlink -f $0`)"
-INCLUDE_DEPENDENCIES=${INCLUDE_DEPENDENCIES:-true}
-
function build_pkg {
case $1 in
ubuntu)
- cd ${DIR}
- rm -rf vswitchperf
- git clone https://gerrit.opnfv.org/gerrit/vswitchperf
- cd vswitchperf && git checkout ${VSPERF_REV} && cd ..
- rm -rf vswitchperf/.git
- tar cfvz ${DIR}/repositories/ubuntu/vswitchperf.tgz vswitchperf
- rm -rf vswitchperf
+ cd ${DIR}/..
+ tar cfvz ${DIR}/repositories/ubuntu/vswitchperf.tgz . --exclude=vswitchperf.tgz
;;
*) echo "Not supported system"; exit 1;;
esac
@@ -32,5 +24,3 @@ for system in $BUILD_FOR
do
build_pkg $system
done
-
-