/[vps]/vserver-sources/mkrelease
Gentoo

Contents of /vserver-sources/mkrelease

Parent Directory Parent Directory | Revision Log Revision Log


Revision 464 - (hide annotations) (download)
Wed Sep 6 19:48:46 2006 UTC (7 years, 10 months ago) by hollow
File size: 540 byte(s)
sync mkrelease scripts
1 hollow 88 #!/bin/bash
2    
3 hollow 464 # Package name convention for vserver-sources patches:
4 phreak 187 # vserver-patches-$CKV_$PVR.tar.bz2
5     # where
6     # 1) CKV is the kernel version (i.e. 2.6.15)
7     # 2) PVR is the package version + revision (i.e. 2.0.1-r1)
8 phreak 110
9 hollow 88 if [ -z $2 ]; then
10 hollow 464 echo "Usage: mkrelease <kernelver> <ver> [<rev>]"
11 hollow 88 exit 1
12     fi
13    
14 hollow 464 CKV=${1}
15     PVR=${2}
16    
17     [[ -n ${3} ]] && PVR=${2}-${3}
18    
19     P="vserver-patches-${CKV}_${PVR}.tar.bz2"
20    
21 hollow 88 tmpdir=$(mktemp -d)
22    
23 hollow 464 svn export ${PVR} ${tmpdir}/${CKV}
24 hollow 88
25 hollow 464 tar cjvf ./${P} -C ${tmpdir} ${CKV} | sort
26 hollow 88
27     rm -rf ${tmpdir}
28    
29 phreak 110 echo "Tarball is at ./${P}"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20