aboutsummaryrefslogtreecommitdiffstats
path: root/build/make_packages.sh
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2016-01-09 02:31:54 +0800
committerJustin chi <chigang@huawei.com>2016-01-30 03:31:32 +0000
commitfd39e2cc7643af69fb692df48895683c487d2b01 (patch)
tree2a1176ed5ec6cc36cbb7d04f3bdd3a19ec4c2555 /build/make_packages.sh
parentffcccb6b50fe7e5954188b44f6666f7ac3dee3da (diff)
add files for build onos/odl/open-contrail
JIRA: COMPASS-258 Change-Id: Ie49a49971c00d1fee291bbdf8d98b06b18854651 Signed-off-by: baigk <baiguoku@huawei.com> (cherry picked from commit b7f58edf25f41c09e4fe1bd72283ad350e80fb1a)
Diffstat (limited to 'build/make_packages.sh')
-rwxr-xr-xbuild/make_packages.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/make_packages.sh b/build/make_packages.sh
new file mode 100755
index 00000000..b7cb5ca2
--- /dev/null
+++ b/build/make_packages.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -ex
+
+BUILD_PATH=$(cd "$(dirname "$0")"; pwd)
+WORK_PATH=$(cd "$(dirname "$0")"/..; pwd)
+
+if [[ -d $WORK_PATH/work/repo/packages ]]; then
+ rm -rf $WORK_PATH/work/repo/packages
+fi
+
+if [[ -d $WORK_PATH/work/repo/temp ]]; then
+ rm -rf $WORK_PATH/work/repo/temp
+fi
+
+mkdir -p $WORK_PATH/work/repo/packages
+mkdir -p $WORK_PATH/work/repo/temp
+
+for i in `ls $WORK_PATH/build/packages`; do
+ . $WORK_PATH/build/packages/$i $WORK_PATH/repo/packages
+done
+
+tar -zcvf $WORK_PATH/repo/packages.tar.gz $WORK_PATH/work/repo/packages