Files
Arch-R/tools/mkpkg/mkpkg_eglibc-2.12
2010-06-25 09:11:19 +02:00

27 lines
923 B
Bash
Executable File

#!/bin/sh
echo "getting sources..."
svn co svn://svn.eglibc.org/branches/eglibc-2_12/libc eglibc-2.12-latest
svn co svn://svn.eglibc.org/branches/eglibc-2_12/ports eglibc-2.12-latest/ports
svn co svn://svn.eglibc.org/branches/eglibc-2_12/linuxthreads/linuxthreads eglibc-2.12-latest/linuxthreads
svn co svn://svn.eglibc.org/branches/eglibc-2_12/linuxthreads/linuxthreads_db eglibc-2.12-latest/linuxthreads_db
echo "getting version..."
cd eglibc-2.12-latest
SVN_REV=`LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //'`
echo $SVN_REV
cd ..
echo "copying sources..."
rm -rf eglibc-2.12-$SVN_REV
cp -R eglibc-2.12-latest eglibc-2.12-$SVN_REV
echo "cleaning sources..."
find eglibc-2.12-$SVN_REV -name .svn -exec rm -rf {} ";"
echo "packing sources..."
tar cvjf eglibc-2.12-$SVN_REV.tar.bz2 eglibc-2.12-$SVN_REV
echo "remove temporary sourcedir..."
rm -rf eglibc-2.12-$SVN_REV