mkpkg: add mkpkg script to build eglibc-2.12 source packages

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-06-25 09:11:19 +02:00
parent f47ce1e9e1
commit b718d8556c

26
tools/mkpkg/mkpkg_eglibc-2.12 Executable file
View File

@ -0,0 +1,26 @@
#!/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