diff --git a/tools/mkpkg/mkpkg_eglibc-2.12 b/tools/mkpkg/mkpkg_eglibc-2.12 new file mode 100755 index 0000000000..f778407d9e --- /dev/null +++ b/tools/mkpkg/mkpkg_eglibc-2.12 @@ -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