diff options
author | Christian Heim <phreak@gentoo.org> | 2006-06-07 18:09:09 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-06-07 18:09:09 +0000 |
commit | bcb3f2f1cfbe786977a73282ab6ea31edf2d6921 (patch) | |
tree | 4c0bb75165a008eb68719ada5c7f1be3cdac6ed2 /vzctl/mkrelease | |
parent | Adding patchset for 3.0.10 (diff) | |
download | misc-bcb3f2f1cfbe786977a73282ab6ea31edf2d6921.tar.gz misc-bcb3f2f1cfbe786977a73282ab6ea31edf2d6921.tar.bz2 misc-bcb3f2f1cfbe786977a73282ab6ea31edf2d6921.zip |
Updating mkrelease
svn path=/; revision=375
Diffstat (limited to 'vzctl/mkrelease')
-rwxr-xr-x | vzctl/mkrelease | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vzctl/mkrelease b/vzctl/mkrelease new file mode 100755 index 0000000..da116e8 --- /dev/null +++ b/vzctl/mkrelease @@ -0,0 +1,38 @@ +#!/bin/bash + +if [ -z $2 ]; then + echo "Usage: mkrelease <ver> <rev>" + exit 1 +fi + +PN="vzctl" +VER="${1}" +REV="${2}" +EXREV="-${REV}" +[[ "${REV}" == "r0" ]] && EXREV= + +shift 2 + +tmpdir=$(mktemp -du) + +svn export . ${tmpdir} + +pushd ${tmpdir} >/dev/null +pushd patches >/dev/null + +for dir in *; do + [ "${dir}" == "${VER}${EXREV}" ] && mv ${dir}/* . + rm -rf "${dir}" +done + +popd >/dev/null + +rm -f mkrelease + +popd >/dev/null + +tar cjvf ./${PN}-${VER}-patches${EXREV}.tar.bz2 -C ${tmpdir} . | sort + +rm -rf ${tmpdir} + +echo "Tarball is at ./${PN}-${VER}-patches${EXREV}.tar.bz2" |