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* \
|
2014-03-21 09:45:42 +00:00
|
|
|
source/libs/libpaper* \
|
2013-12-26 15:40:33 +00:00
|
|
|
source/libs/icu* \
|
|
|
|
source/libs/graphite2* \
|
|
|
|
source/libs/potrace* \
|
2014-03-21 09:52:25 +00:00
|
|
|
source/libs/luajit* \
|
2013-12-26 15:40:33 +00:00
|
|
|
source/libs/freetype/* \
|
2013-04-27 20:15:15 +00:00
|
|
|
source/texk/texlive/w32_wrapper \
|
|
|
|
source/utils/t1utils* \
|
|
|
|
source/utils/xindy* \
|
|
|
|
source/utils/asymptote* \
|
|
|
|
source/utils/psutils* \
|
2013-12-26 15:40:33 +00:00
|
|
|
source/utils/biber* \
|
2013-04-27 20:15:15 +00:00
|
|
|
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
|