retrieving glibc sources by date

Dan Kegel dank@kegel.com
Mon Jul 5 05:31:00 GMT 2004


In the next release of crosstool, I'd like to deal with
the fact that the glibc project does not release snapshot tarballs.

To that end, here's a quickie script that will
(slowly and inefficiently) retrieve the glibc sources
as of a certain date.  You then have to delete either
linuxthreads or nptl (or fix crosstool.sh to not
enable all addons; Martin VanLeeuwen already sent in
a nice patch for that).

#!/bin/sh
# Script to retrieve glibc source via CVS as of a certain date
# Includes all addons (e.g., both linuxthreads and NPTL)
# Usage: grab.sh YYYYMMDD
# Creates glibc-YYYYMMDD.tar.gz
mkdir temp.$$
cd temp.$$
mkdir CVS
echo ":pserver:anoncvs@sources.redhat.com:/cvs/glibc" > CVS/Root
cvs co -D$1 libc
mv libc glibc-$1
tar --exclude CVS -czf ../glibc-$1.tar.gz glibc-$1
cd ..
rm -rf temp.$$


-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list