diff options
author | 2006-09-06 19:48:51 +0000 | |
---|---|---|
committer | 2006-09-06 19:48:51 +0000 | |
commit | 0e09a1c8aae0d42de21e2bd5c27c01c18da4b3f2 (patch) | |
tree | 8b3864152d13c123a878c8aa968ef7d8a3d20cb4 | |
parent | sync mkrelease scripts (diff) | |
download | misc-0e09a1c8aae0d42de21e2bd5c27c01c18da4b3f2.tar.gz misc-0e09a1c8aae0d42de21e2bd5c27c01c18da4b3f2.tar.bz2 misc-0e09a1c8aae0d42de21e2bd5c27c01c18da4b3f2.zip |
sync mkrelease scripts
svn path=/; revision=465
-rwxr-xr-x | openvz-sources/mkrelease | 18 |
1 files 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 <ver> <kernelver>" + echo "Usage: mkrelease <kernelver> <ver> [<rev>]" 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} |