/[vps]/vserver-sources/mkrelease
Gentoo

Diff of /vserver-sources/mkrelease

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 88 Revision 110
1#!/bin/bash 1#!/bin/bash
2
3P="vserver-sources-${1}.tar.bz2"
2 4
3if [ -z $2 ]; then 5if [ -z $2 ]; then
4 echo "Usage: mkrelease <ver> <kernelver>" 6 echo "Usage: mkrelease <ver> <kernelver>"
5 exit 1 7 exit 1
6fi 8fi
7 9
8tmpdir=$(mktemp -d) 10tmpdir=$(mktemp -d)
9 11
10svn export ${1} ${tmpdir}/${2} 12svn export ${1} ${tmpdir}/${2}
11 13
12tar cjvf ./vserver-sources-${1}.tar.bz2 -C ${tmpdir} ${2} 14tar cjvf ./${P} -C ${tmpdir} ${2}
13 15
14rm -rf ${tmpdir} 16rm -rf ${tmpdir}
15 17
16echo "Tarball is at ./vserver-sources-${1}.tar.bz2" 18echo "Tarball is at ./${P}"

Legend:
Removed from v.88  
changed lines
  Added in v.110

  ViewVC Help
Powered by ViewVC 1.1.20