/[vps]/vzctl/mkrelease
Gentoo

Contents of /vzctl/mkrelease

Parent Directory Parent Directory | Revision Log Revision Log


Revision 463 - (show annotations) (download)
Wed Sep 6 19:48:41 2006 UTC (8 years, 3 months ago) by hollow
File size: 617 byte(s)
sync mkrelease scripts
1 #!/bin/bash
2
3 # Package name convention for vzctl patches
4 # vzctl-patches-${PVR}.tar.bz2
5 # where
6 # PVR is the package version + revision (i.e. 2.0.1-r1)
7
8 if [ -z $1 ]; then
9 echo "Usage: mkrelease <ver> [<rev>]"
10 exit 1
11 fi
12
13 PVR=${1}
14
15 [[ -n ${2} ]] && PVR=${1}-${2}
16
17 P="vzctl-patches-${PVR}.tar.bz2"
18
19 tmpdir=$(mktemp -du)
20
21 svn export . ${tmpdir}
22
23 pushd ${tmpdir} >/dev/null
24 pushd patches >/dev/null
25
26 for dir in *; do
27 [ "${dir}" == "${PVR}" ] && mv ${dir}/* .
28 rm -rf "${dir}"
29 done
30
31 popd >/dev/null
32
33 rm -f mkrelease
34
35 popd >/dev/null
36
37 tar cjvf ./${P} -C ${tmpdir} . | sort
38
39 rm -rf ${tmpdir}
40
41 echo "Tarball is at ./${P}"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20