diff options
Diffstat (limited to 'util-vserver/mkrelease')
-rwxr-xr-x | util-vserver/mkrelease | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/util-vserver/mkrelease b/util-vserver/mkrelease deleted file mode 100755 index b89151f..0000000 --- a/util-vserver/mkrelease +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -# Package name convention for util-vserver patches -# util-vserver-patches-${PVR}.tar.bz2 -# where -# PVR is the package version + revision (i.e. 2.0.1-r1) - -if [ -z $1 ]; then - echo "Usage: mkrelease <ver> [<rev>]" - exit 1 -fi - -PVR=${1} - -[[ -n ${2} ]] && PVR=${1}-${2} - -P="util-vserver-patches-${PVR}.tar.bz2" - -tmpdir=$(mktemp -du) - -svn export . ${tmpdir} - -pushd ${tmpdir} >/dev/null -pushd patches >/dev/null - -for dir in *; do - [ "${dir}" == "${PVR}" ] && mv ${dir}/* . - rm -rf "${dir}" -done - -popd >/dev/null - -rm -f mkrelease - -popd >/dev/null - -tar cjvf ./${P} -C ${tmpdir} . | sort - -rm -rf ${tmpdir} - -echo "Tarball is at ./${P}" |