diff options
Diffstat (limited to 'vzctl/patches/mkrelease')
-rwxr-xr-x | vzctl/patches/mkrelease | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vzctl/patches/mkrelease b/vzctl/patches/mkrelease index 90c64f4..a20ebb6 100755 --- a/vzctl/patches/mkrelease +++ b/vzctl/patches/mkrelease @@ -7,12 +7,14 @@ fi VER="${1/-/.}" REV="${2}" +EXREV="-${REV}" +[[ "${REV}" == "r0" ]] && EXREV= shift 2 tmpdir=$(mktemp -du) -svn export ${VER}-${REV} ${tmpdir} +svn export ${VER}${EXREV} ${tmpdir} mkdir $tmpdir/patches mv $tmpdir/*.patch $tmpdir/patches/ |