2013-04-27 20:15:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script checks out TeX Live upstream sources to build binaries,
|
|
|
|
# removes unneeded files and generates a tarball used to build RPMs.
|
|
|
|
# Written by Jindrich Novy (novyjindrich@gmail.com)
|
|
|
|
#
|
|
|
|
svn co svn://tug.org/texlive/trunk/Build/source | tee /tmp/rsynclog
|
|
|
|
[ "$?" != "0" ] && exit 1
|
|
|
|
UPDATES=`grep -v '^Checked out revision' /tmp/rsynclog`
|
|
|
|
[ "$UPDATES" == "" ] && exit 0
|
|
|
|
cp -R source source.svn
|
|
|
|
for i in \
|
|
|
|
'.svn' \
|
|
|
|
'*.exe' \
|
|
|
|
'*.dsp' \
|
|
|
|
'*.dsw' \
|
|
|
|
'*.orig' \
|
|
|
|
'*vcproj*' \
|
|
|
|
'*vcxproj*' \
|
|
|
|
'*.vc' \
|
|
|
|
'*vc[678]*' \
|
|
|
|
; do
|
|
|
|
find source -name $i | tee | xargs rm -rf
|
|
|
|
done
|
|
|
|
#rm -rf source/utils/biber*
|
|
|
|
rm -rf \
|
|
|
|
source/libs/zlib* \
|
|
|
|
source/libs/libpng* \
|
|
|
|
source/libs/expat* \
|
|
|
|
source/libs/jpeg* \
|
|
|
|
source/libs/t1lib* \
|
|
|
|
source/libs/teckit* \
|
|
|
|
source/libs/gd* \
|
|
|
|
source/libs/freetype2* \
|
|
|
|
source/libs/zziplib* \
|
|
|
|
source/libs/poppler* \
|
|
|
|
source/libs/unzip* \
|
|
|
|
source/libs/xpdf* \
|
|
|
|
source/libs/cairo* \
|
|
|
|
source/libs/harfbuzz* \
|
|
|
|
source/libs/pixman* \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/amigaos \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/beos \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/mac \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/msdos \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/os2 \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/win16 \
|
|
|
|
source/libs/freetype/freetype-*/lib/arch/win32 \
|
|
|
|
source/libs/freetype/freetype-*/test/arch/amigaos* \
|
|
|
|
source/libs/freetype/freetype-*/test/arch/msdos* \
|
|
|
|
source/libs/freetype/freetype-*/test/arch/os2* \
|
|
|
|
source/libs/freetype/freetype-*/test/arch/win16* \
|
|
|
|
source/libs/freetype/freetype-*/test/arch/win32* \
|
|
|
|
source/texk/texlive/w32_wrapper \
|
|
|
|
source/utils/t1utils* \
|
|
|
|
source/utils/xindy* \
|
|
|
|
source/utils/asymptote* \
|
|
|
|
source/utils/psutils* \
|
|
|
|
source/utils/biber/bin* \
|
|
|
|
source/utils/xz* \
|
|
|
|
source/extra*
|
|
|
|
#source/utils/asymptote*
|
|
|
|
DATE=`date +%Y%m%d`_r`grep Checked /tmp/rsynclog | cut -d" " -f4 | sed s/.$//`
|
2013-05-25 18:22:08 +00:00
|
|
|
sed -i s/global\ source_date.*$/global\ source_date\ $DATE/g texlive.spec.template
|
2013-04-27 20:15:15 +00:00
|
|
|
rm -f texlive-*-source.tar.xz
|
|
|
|
echo "Packing..."
|
|
|
|
time tar Oc source | xz -cv -T0 - > texlive-$DATE-source.tar.xz
|
|
|
|
rm -rf source
|
|
|
|
mv source.svn source
|
2013-05-25 18:22:08 +00:00
|
|
|
mv texlive*-source.tar.xz `rpm --eval "%_topdir"`/SOURCES
|