Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: dfc674eb83
Fetching contributors…

Cannot retrieve contributors at this time

executable file 53 lines (45 sloc) 1.119 kB
#!/bin/sh
basedir=`dirname "$0"`
. "$basedir"/commons.sh
oss="$1"
shift
distro="$1"
shift
version="$1"
shift
tarballname="$1"
shift
s3repo="$1"
if [ x"$PACKAGE_NAME" != "x" ]; then
pkgname=$tarballname-$version-$PACKAGE_NAME-$distro
else
pkgname=$tarballname-$version-$distro
fi
tmpdir=`mktemp -d`
destdir=$tmpdir/$pkgname
tarname=$pkgname.tar.gz
rpmDir=`cat $RESULT_DIR`
mkdir -p "$tmpdir"
rsync -a "$rpmDir"/oss "$destdir"/
if [ "$oss" != "True" && x"$NO_PROPIRETARY" != x"true" ]; then
rsync -a "$rpmDir"/premium "$destdir"/
fi
rsync -a "$DEPS_DIR" "$destdir"/
createrepo -q -d "$destdir"
chmod +x install.sh
cp install.sh "$destdir"/
pushd "$tmpdir"
tar czf "$tarname" "$pkgname"
popd
mv "$tmpdir"/"$tarname" .
rm -rf "$tmpdir"
tgtfldr="$YUMREPO":"$YUMREPO_RELEASE_DIR"/"$SUB_DIR"
mntpoint="/media"
mount "$tgtfldr" "$mntpoint" -o nolock
mkdir -p "$mntpoint"/"$PUSH_TO_REPO"
if [ x"$s3repo" != x"" ]; then
s3cmd put --acl-public "$tarname" "$s3repo"
fi
mv "$tarname" "$mntpoint"/"$PUSH_TO_REPO"/
echo "Tarball URL:http://yumrepo.lab.vmops.com/releases/$SUB_DIR/$PUSH_TO_REPO/$tarname"
umount "$mntpoint"
Jump to Line
Something went wrong with that request. Please try again.