diff options
Diffstat (limited to 'build/make_packages.sh')
-rwxr-xr-x | build/make_packages.sh | 22 |
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 |