aboutsummaryrefslogtreecommitdiffstats
path: root/fuel-plugin-vsperf/pre_build_hook
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2016-05-25 14:50:20 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-25 14:50:20 +0000
commit5e3b6ae0427963520357453728411327ac8efafe (patch)
tree78bd0b78bc32566b0dbcc5ad8520740d0bc07caa /fuel-plugin-vsperf/pre_build_hook
parent2e259679732ed4e0464992b4cae04a4cf4d88000 (diff)
parent5df5198c8b178debaf0e7190a42fa6cc2851b633 (diff)
Merge "Rebase to fuel 9.0 and add vagrant based build and enhance some scripts"
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
-
-