* [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh
@ 2007-10-06 23:15 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2007-10-06 23:15 UTC (permalink / raw
To: gentoo-commits
vapier 07/10/06 23:15:11
Modified: make-tarball.sh
Log:
include README.history
Revision Changes Path
1.5 src/patchsets/binutils/make-tarball.sh
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?r1=1.4&r2=1.5
Index: make-tarball.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/make-tarball.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- make-tarball.sh 28 May 2005 03:38:21 -0000 1.4
+++ make-tarball.sh 6 Oct 2007 23:15:11 -0000 1.5
@@ -21,7 +21,7 @@
rm -f binutils-${bver}-*.tar.bz2
mkdir -p tmp/patch
-cp -r ../README* ${bver}/*.patch tmp/patch/ || exit 1
+cp -r ../README* ${bver}/*.patch ${bver}/README.history tmp/patch/ || exit 1
if [[ -n ${uver} ]] ; then
mkdir -p tmp/uclibc-patches
cp -r ../README* ${bver}/uclibc/*.patch tmp/uclibc-patches/ || exit 1
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh
@ 2008-04-03 17:59 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2008-04-03 17:59 UTC (permalink / raw
To: gentoo-commits
vapier 08/04/03 17:59:38
Modified: make-tarball.sh
Log:
grab version from README.history
Revision Changes Path
1.6 src/patchsets/binutils/make-tarball.sh
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/make-tarball.sh?r1=1.5&r2=1.6
Index: make-tarball.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/make-tarball.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- make-tarball.sh 6 Oct 2007 23:15:11 -0000 1.5
+++ make-tarball.sh 3 Apr 2008 17:59:38 -0000 1.6
@@ -1,9 +1,14 @@
#!/bin/bash
-if [[ $# -lt 2 ]] || [[ $# -gt 3 ]] ; then
+usage()
+{
echo "Usage: $0 <binutils ver> <patch ver> [uclibc ver]"
exit 1
-fi
+}
+
+[[ $# -eq 0 ]] && usage
+[[ $# -gt 3 ]] && usage
+
bver=$1
pver=$2
uver=$3
@@ -17,6 +22,11 @@
exit 1
fi
+if [[ -z ${pver} ]] ; then
+ pver=$(awk '{print $1; exit}' ./${bver}/README.history)
+ [[ -z ${pver} ]] && usage
+fi
+
rm -rf tmp
rm -f binutils-${bver}-*.tar.bz2
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh
@ 2012-04-26 1:52 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2012-04-26 1:52 UTC (permalink / raw
To: gentoo-commits
vapier 12/04/26 01:52:20
Modified: make-tarball.sh
Log:
start compressing with xz to match the newer tarballs
Revision Changes Path
1.7 src/patchsets/binutils/make-tarball.sh
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?r1=1.6&r2=1.7
Index: make-tarball.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/make-tarball.sh,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- make-tarball.sh 3 Apr 2008 17:59:38 -0000 1.6
+++ make-tarball.sh 26 Apr 2012 01:52:20 -0000 1.7
@@ -27,8 +27,20 @@
[[ -z ${pver} ]] && usage
fi
+tbase="binutils-${bver}"
+case ${bver} in
+2.2[2-9].*)
+ comp="xz"
+ tsfx="tar.xz"
+ ;;
+*)
+ comp="bzip2"
+ tsfx="tar.bz2"
+ ;;
+esac
+
rm -rf tmp
-rm -f binutils-${bver}-*.tar.bz2
+rm -f ${tbase}-*.${tsfx}
mkdir -p tmp/patch
cp -r ../README* ${bver}/*.patch ${bver}/README.history tmp/patch/ || exit 1
@@ -37,14 +49,10 @@
cp -r ../README* ${bver}/uclibc/*.patch tmp/uclibc-patches/ || exit 1
fi
-#find tmp -type f -a ! -name 'README*' | xargs bzip2
-
-tar -jcf binutils-${bver}-patches-${pver}.tar.bz2 \
- -C tmp patch || exit 1
+tar -cf - -C tmp patch | ${comp} > ${tbase}-patches-${pver}.${tsfx} || exit 1
if [[ -n ${uver} ]] ; then
- tar -jcf binutils-${bver}-uclibc-patches-${uver}.tar.bz2 \
- -C tmp uclibc-patches || exit 1
+ tar -cf - -C tmp uclibc-patches | ${comp} > ${tbase}-uclibc-patches-${uver}.${tsfx} || exit 1
fi
rm -r tmp
-du -b binutils-${bver}-*.tar.bz2
+du -b ${tbase}-*.${tsfx}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh
@ 2012-08-07 20:20 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2012-08-07 20:20 UTC (permalink / raw
To: gentoo-commits
vapier 12/08/07 20:20:42
Modified: make-tarball.sh
Log:
generalize script a bit with $PN/$PV variables
Revision Changes Path
1.8 src/patchsets/binutils/make-tarball.sh
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?r1=1.7&r2=1.8
Index: make-tarball.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/make-tarball.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- make-tarball.sh 26 Apr 2012 01:52:20 -0000 1.7
+++ make-tarball.sh 7 Aug 2012 20:20:42 -0000 1.8
@@ -1,34 +1,36 @@
#!/bin/bash
+PN="binutils"
+
usage()
{
- echo "Usage: $0 <binutils ver> <patch ver> [uclibc ver]"
+ echo "Usage: $0 <${PN} ver> <patch ver> [uclibc ver]"
exit 1
}
[[ $# -eq 0 ]] && usage
[[ $# -gt 3 ]] && usage
-bver=$1
+PV=$1
pver=$2
uver=$3
-if [[ ! -d ./${bver} ]] ; then
- echo "Error: ${bver} is not a valid binutils ver"
+if [[ ! -d ./${PV} ]] ; then
+ echo "Error: ${PV} is not a valid ${PN} ver"
exit 1
fi
-if [[ -n ${uver} ]] && [[ ! -d ./${bver}/uclibc ]] ; then
- echo "Error: ${bver} doesnt support uClibc :("
+if [[ -n ${uver} ]] && [[ ! -d ./${PV}/uclibc ]] ; then
+ echo "Error: ${PV} doesnt support uClibc :("
exit 1
fi
if [[ -z ${pver} ]] ; then
- pver=$(awk '{print $1; exit}' ./${bver}/README.history)
+ pver=$(awk '{print $1; exit}' ./${PV}/README.history)
[[ -z ${pver} ]] && usage
fi
-tbase="binutils-${bver}"
-case ${bver} in
+tbase="${PN}-${PV}"
+case ${PV} in
2.2[2-9].*)
comp="xz"
tsfx="tar.xz"
@@ -43,10 +45,10 @@
rm -f ${tbase}-*.${tsfx}
mkdir -p tmp/patch
-cp -r ../README* ${bver}/*.patch ${bver}/README.history tmp/patch/ || exit 1
+cp -r ../README* ${PV}/*.patch ${PV}/README.history tmp/patch/ || exit 1
if [[ -n ${uver} ]] ; then
mkdir -p tmp/uclibc-patches
- cp -r ../README* ${bver}/uclibc/*.patch tmp/uclibc-patches/ || exit 1
+ cp -r ../README* ${PV}/uclibc/*.patch tmp/uclibc-patches/ || exit 1
fi
tar -cf - -C tmp patch | ${comp} > ${tbase}-patches-${pver}.${tsfx} || exit 1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh
@ 2012-10-24 3:20 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2012-10-24 3:20 UTC (permalink / raw
To: gentoo-commits
vapier 12/10/24 03:20:02
Modified: make-tarball.sh
Log:
use xz for 2.23+
Revision Changes Path
1.9 src/patchsets/binutils/make-tarball.sh
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/make-tarball.sh?r1=1.8&r2=1.9
Index: make-tarball.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/make-tarball.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- make-tarball.sh 7 Aug 2012 20:20:42 -0000 1.8
+++ make-tarball.sh 24 Oct 2012 03:20:02 -0000 1.9
@@ -31,7 +31,7 @@
tbase="${PN}-${PV}"
case ${PV} in
-2.2[2-9].*)
+2.2[2-9].*|2.2[3-9]*|2.[3-9]*|[3-9]*)
comp="xz"
tsfx="tar.xz"
;;
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-24 3:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 20:20 [gentoo-commits] gentoo commit in src/patchsets/binutils: make-tarball.sh Mike Frysinger (vapier)
-- strict thread matches above, loose matches on Subject: below --
2012-10-24 3:20 Mike Frysinger (vapier)
2012-04-26 1:52 Mike Frysinger (vapier)
2008-04-03 17:59 Mike Frysinger (vapier)
2007-10-06 23:15 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