From 0e09a1c8aae0d42de21e2bd5c27c01c18da4b3f2 Mon Sep 17 00:00:00 2001 From: Benedikt Boehm Date: Wed, 6 Sep 2006 19:48:51 +0000 Subject: sync mkrelease scripts svn path=/; revision=465 --- openvz-sources/mkrelease | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/openvz-sources/mkrelease b/openvz-sources/mkrelease index bd76bcb..4ae4587 100755 --- a/openvz-sources/mkrelease +++ b/openvz-sources/mkrelease @@ -1,22 +1,28 @@ #!/bin/bash -# New package name as of 06 Jan 2006 +# Package name convention for openvz-sources patches: # openvz-patches-$CKV_$PVR.tar.bz2 # where # 1) CKV is the kernel version (i.e. 2.6.15) -# 2) PVR is the package version + revision (i.e. 022.061) -P="openvz-patches-${2}_${1}.tar.bz2" +# 2) PVR is the package version + revision (i.e. 2.0.1-r1) if [ -z $2 ]; then - echo "Usage: mkrelease " + echo "Usage: mkrelease []" exit 1 fi +CKV=${1} +PVR=${2} + +[[ -n ${3} ]] && PVR=${2}-${3} + +P="openvz-patches-${CKV}_${PVR}.tar.bz2" + tmpdir=$(mktemp -d) -svn export ${1} ${tmpdir}/${2} +svn export ${PVR} ${tmpdir}/${CKV} -tar cjvf ./${P} -C ${tmpdir} ${2} +tar cjvf ./${P} -C ${tmpdir} ${CKV} | sort rm -rf ${tmpdir} -- cgit v1.2.3-65-gdbad