obproxy-ce-build.sh 349 字节
Newer Older
W
wangzelin.wzl 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash
# use by rpm build platform

SCRIPT_DIR=$(cd "$(dirname "$0")";pwd)
TOP_DIR=${1:-${SCRIPT_DIR}/../}
PACKAGE=$2
VERSION=$3
RELEASE=$4

# prepare rpm build dirs
cd $TOP_DIR
sh build.sh clean

# build rpm
cd $TOP_DIR
sh build.sh rpm $PACKAGE $VERSION $RELEASE

find $TOP_DIR/ -name "*.rpm" -maxdepth 1 -exec mv {} $SCRIPT_DIR 2>/dev/null \;