Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: make-tarball.sh
Date: Mon, 29 Dec 2008 12:51:42
Message-Id: E1LHHar-0005fo-Uf@stork.gentoo.org
1 vapier 08/12/29 12:51:37
2
3 Modified: make-tarball.sh
4 Log:
5 add support for git-format-patch style dirs
6
7 Revision Changes Path
8 1.4 src/patchsets/gentoo-headers/make-tarball.sh
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/make-tarball.sh?rev=1.4&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/make-tarball.sh?rev=1.4&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/make-tarball.sh?r1=1.3&r2=1.4
13
14 Index: make-tarball.sh
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/make-tarball.sh,v
17 retrieving revision 1.3
18 retrieving revision 1.4
19 diff -u -r1.3 -r1.4
20 --- make-tarball.sh 12 Apr 2008 22:48:06 -0000 1.3
21 +++ make-tarball.sh 29 Dec 2008 12:51:37 -0000 1.4
22 @@ -14,6 +14,22 @@
23
24 tar=gentoo-headers-${kver}-${pver}.tar.lzma
25 rm -f gentoo-headers-${kver}-*.tar.lzma
26 -tar -cf - --exclude="$kver/CVS" $kver | lzma > ${tar}
27
28 +if [[ -n $(find $kver -name '??_all_*') ]] ; then
29 + ch=
30 +else
31 + ch="-C .tmp"
32 + rm -rf .tmp
33 + mkdir .tmp
34 + cp -r $kver .tmp/
35 + pushd .tmp/$kver >/dev/null
36 + for p in *.patch ; do
37 + mv $p 00_all_$p
38 + done
39 + popd >/dev/null
40 +fi
41 +
42 +tar -cf - --exclude=CVS $ch $kver | lzma > ${tar}
43 +
44 +rm -rf .tmp
45 du -b *.lzma