| 1 |
usage () { |
| 2 |
echo '$1 = location of your personal copy of TeXLive (please no space in path)' |
| 3 |
echo '$2 = basever = date of TeXLive checkout as format yyyy.mm.dd' |
| 4 |
exit 0 |
| 5 |
} |
| 6 |
|
| 7 |
if [ -z $2 ]; then usage; fi |
| 8 |
|
| 9 |
#tlnet=${1:-/home/norbert/public_html/tlnet} |
| 10 |
#tlnet=${1:-/home/hille/devel/TeXLive/ctan_tl_texmf_tl_bin/ctan.mirror.norbert-ruehl.de} |
| 11 |
#tlnet=${1:-/home/hille/devel/TeXLive/zzz_upstream_raw/ctan.mirror.norbert-ruehl.de} |
| 12 |
tlnet="$1" |
| 13 |
|
| 14 |
#basever=2023.04.09 |
| 15 |
basever="$2" |
| 16 |
|
| 17 |
verstr=`date +%Y%m%d` |
| 18 |
pkg="context-${basever}.${verstr}" |
| 19 |
orig="context_${basever}.${verstr}+dfsg.orig.tar.gz" |
| 20 |
|
| 21 |
if [ -r $pkg ] ; then |
| 22 |
echo "already here: $pkg" |
| 23 |
exit 1 |
| 24 |
fi |
| 25 |
|
| 26 |
unpackone() { |
| 27 |
what=$1 |
| 28 |
for i in "" .doc .i386-linux ; do |
| 29 |
fn="$tlnet/archive/$what${i}.tar.xz" |
| 30 |
if [ -r "$fn" ] ; then |
| 31 |
echo "unpacking $fn" |
| 32 |
tar -xf "$fn" |
| 33 |
fi |
| 34 |
done |
| 35 |
} |
| 36 |
|
| 37 |
echo "installing from $tlnet" |
| 38 |
|
| 39 |
mkdir $pkg |
| 40 |
cd $pkg |
| 41 |
unpackone context |
| 42 |
# remove win32 stubs |
| 43 |
rm -r texmf-dist/scripts/context/stubs/mswin/ |
| 44 |
rm -r texmf-dist/scripts/context/stubs/win64/ |
| 45 |
# |
| 46 |
# remove non-free files for the moment |
| 47 |
# replaced in TL already |
| 48 |
rm -rf texmf-dist/tex/context/colors/icc/profiles/* |
| 49 |
|
| 50 |
grep -l -r licence=cc-by-nc-sa *|xargs rm |
| 51 |
|
| 52 |
# Remove luametatex binary |
| 53 |
rm -f bin/i386-linux/luametatex |
| 54 |
|
| 55 |
# Remove broken links (after luametatex removal) |
| 56 |
rm -f bin/i386-linux/context bin/i386-linux/mtxrun |
| 57 |
|
| 58 |
cd .. |
| 59 |
|
| 60 |
GZIP=-9 tar -czf $orig $pkg |