public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/patchsets/openafs: make-tarball.sh
@ 2010-06-21 22:29 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2010-06-21 22:29 UTC (permalink / raw
  To: gentoo-commits

vapier      10/06/21 22:29:43

  Added:                make-tarball.sh
  Log:
  helper script to create patch tarball

Revision  Changes    Path
1.1                  src/patchsets/openafs/make-tarball.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/openafs/make-tarball.sh?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/openafs/make-tarball.sh?rev=1.1&content-type=text/plain

Index: make-tarball.sh
===================================================================
#!/bin/bash

cd "${0%/*}"
PN=${PWD##*/}
PV=${1%/}
pver=$2

if [[ -z ${PV} ]] ; then
	echo "Usage: $0 <base ver> [patch ver]"
	exit 1
fi

pv=${PV:0:3}
if [[ ! -d ./patches/${pv} ]] ; then
	echo "Error: ${PV} is not a valid ver"
	exit 1
fi

if [[ -z ${pver} ]] ; then
	echo "Error: need a patch version"
	exit 1
fi

rm -rf tmp
rm -f ${PN}-${PV}-*.tar.bz2

mkdir -p tmp/gentoo
cp -r patches/${pv} tmp/gentoo/patches || exit 1
cp -r configs scripts ../README* tmp/gentoo/ || exit 1

find tmp -type d -name CVS -exec rm -r {} +

tar -jcf ${PN}-${PV}-patches-${pver}.tar.bz2 -C tmp gentoo || exit 1
rm -r tmp

du -b *.tar.bz2






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-21 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 22:29 [gentoo-commits] gentoo commit in src/patchsets/openafs: make-tarball.sh Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox