From 4a64475651906e3a3d408960dbfb189e333bc3f3 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 21 Mar 2024 19:39:38 +0100 Subject: added mksymlinks --- alessi.asc | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ makefile | 2 +- mksymlinks | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ tl-build.sh | 8 ++++++++ 4 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 alessi.asc create mode 100644 mksymlinks diff --git a/alessi.asc b/alessi.asc new file mode 100644 index 0000000..c701ebf --- /dev/null +++ b/alessi.asc @@ -0,0 +1,63 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFOav/8BEAC6RHt1j+cnDde5GbBAE7Uua1HbfizYyiSINX7vEeU0wv35vr/z +Mqv44cEKwoF9i6f615Eg+jwJAk824EOEcKCZX5KjaH0lK3NCKiXUQS9hSCGF/R1T +NjdzHGzrr+S/ZYBsSY8P9Q5grgIyBw31WiOTaGq4CG1bJsPYdKa2+WZ4gQf5dHqz +5UZJJOyvkEH+lBI+17PekFm7qWXjDeo4kS56w/n9hJRw5IS7ToqF0AvBLixeoKCw +N/dvRAaPF6VosOOCSvZFPJwEfn6KFeybUFLirnBFchziLdtv7xfpN1Y8ouAZZWxh +kMawhNOOYjHx9OrQ4ma90wllma/ElOqaV5sqYxcf9f5yXAAV6+beW97Ybj7XZ5Pi +yfcIxao29P8WzUrZYhPLdF3AxpaIzJfrAMXYux8bmYjplKhASbQUsE7RtYapBx+G +cY5zzDGgHRkuUbkuVp0sXq4n9lL5oNoRdGYjzI+IPqshk/IHW876HNJL7fBI4CJ2 +ikF6KqcY0Hp6Asan0h6wnYLTuv16Mr41BPYsIXcqhKX3RXllRdRl096RS5YnYSv2 +u50L8pm7sCBH4Lc6Z/cwT3kLenI4mfSs6z29QHsWLGRdigc/ArnfuAYQRt0jLEF/ +U4n1iOCE4jLjMRrmcaUCfPQC3ySa7sLe6EepwCinBN+FJM1wVNy3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pYLOpWt +4ZnLurvzDVKNQIHEG+ebHRJaBQYEOjrg8cePdrdKttbPo1iowB+VBuzc+xNB1GpG +hBkB6YVU4VbRxlX5pl2X2SxFXmKhnaQ7slqBjgaP3SQkqiE8zapAAuhW8fsgTnRB +UXOFBStHvy9qLJWQVZ4XoRFwbs4e6wj9loHVz1QtABEBAAGJAh8EGAEIAAkCGwwF +AlfneaIACgkQF3PpJICFyMe2Xg/+MlYjQWt8z8QIFuZI5Ptpdgf6rd7mwA2ApIAN +SKjHlw7vUAEEe19vijURo+v/NPJIPn3/RdRbqmzBQhpEwf68VijRKc99/Kn6Um9D +aNiiJ1aQSl9oqZO7N7mAXI7mAwZdJI235kDVZLVJ+Xkuf5MkATX19NfxnWUw3ChP +n7sMLzUPWo4s4bHXGH85hEjeitAmyykNHw1dA+ieBDJA2lGYq+i0AIUn/MbyIXBa +LluGwBF4qHrNywtOvsYfKYhI7PG/gOU4Kauj7y4fwd+r3kYOVZ6AE9GzXIAXSu+z +XyXRpWr8OThB0ZgRwp9ALabsslYLIwYP/AZSV0ogwRCBJP8onZ/4ZrfmxWdKQiMZ +hhP2LONlyAm6vcUa43o1hYR74GEbwiXOdYcvFun7uXTa2gpXJbTcDCBMJ+tEvhFw +4JLkBK9VcIUafY1BUIXflp0ZqKp2gHy+ikMxE8NfpvtJucTdsOQGPf5z7n/qhkeF +JbHje/CVWS/+WfjjTn6ovxmRWfxcQeTqqbGJ4Z2QZamyDK8DtB5IDJLTC06RFngP +Hfu09Zp83UR6otf2i3exdaYwt/PKh5kgDh+0QV5GPrZbM3UIGeCQMAD6EY81k0Mn +jxzMzoNheqXOWlRsp1vR5obm58PpLdOxhkcWyHhmrA5/MkJ2tKeHMAXuWPlKpsbT +IeV9P50= +=5DS3 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/makefile b/makefile index c2513ec..e275888 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ PREFIX?=/usr/local/texlive/${TL_YEAR}/bin/custom BINREPO=https://www.ekdosis.org/texlive TMPDIR!=mktemp -d OPENBSD_VERSION!=uname -r | sed 's/\.//' -TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex//' +TLBINPATH!!=which latex 2>/dev/null | sed 's/\/latex$$//' TMPSOURCE?="" UPDATING!=curl -s ${BINREPO}/status.txt | grep updating= | sed 's/.*=//' diff --git a/mksymlinks b/mksymlinks new file mode 100644 index 0000000..6817fbd --- /dev/null +++ b/mksymlinks @@ -0,0 +1,53 @@ +#!/bin/sh +# +# $TeX Live for OpenBSD, 2024/03/21 $ + +TLBINDIR=$(dirname $0) +REL=../.. +LSTFILE=$(mktemp) +AMFILE=$(mktemp) + +if [[ ! -w ${TLBINDIR} ]]; then + echo "You do not have write permissions to ${TLBINDIR}" + exit 1 +fi + +svn --force export svn://tug.org/texlive/trunk/Build/source/texk/texlive/linked_scripts/scripts.lst \ + ${LSTFILE} || exit 1 + +svn --force export svn://tug.org/texlive/trunk/Build/source/texk/texlive/linked_scripts/Makefile.am \ + ${AMFILE} || exit 1 +bin_links=$(awk '/bin_links = \\/,/^$/' ${AMFILE} | awk NF | grep -v bin_links | sed 's,\\,,') + +cd ${TLBINDIR} && \ + for s in $(cat ${LSTFILE} | grep -v \') + do + target=`basename $s | tr '[A-Z]' '[a-z]'` + echo "$s" | grep 'memoize-.*\.' >/dev/null \ + || echo "$s" | grep 'listings-ext.sh' >/dev/null \ + || target=`echo $target | sed 's,\.[^/]*$,,'`; \ + if [[ $1 == "remove" ]];then + rm -f $target + else + rm -f $target + echo "creating link '$target' -> '$REL/texmf-dist/scripts/$s'" + ln -s $REL/texmf-dist/scripts/$s $target || exit 1 + fi + done && \ + for s in ${bin_links} + do + link=`echo $s | sed 's,.*:,,'` + file=`echo $s | sed 's,:.*,,'` + if [[ $1 == "remove" ]];then + rm -f $link + else + rm -f $link + echo "creating link '$link' -> '$file'" + ln -s $file $link || exit 1 + fi + done + +if [[ $1 == "remove" ]] +then + echo "all symlinks have been removed. why did you do this?" +fi diff --git a/tl-build.sh b/tl-build.sh index eda6bea..d81e41f 100755 --- a/tl-build.sh +++ b/tl-build.sh @@ -146,6 +146,13 @@ function include_asymptote { fi } +function include_extras { + if [[ -d ${tl_sourcedir}/inst/bin ]];then + tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` + install -m 0755 ${this_dir}/mksymlinks ${tl_bindir}/mktexobsdsymlinks + fi +} + # Now build TL if [[ ${build_tl} == "y" ]]; then cd ${tl_sourcedir} @@ -157,6 +164,7 @@ if [[ ${build_tl} == "y" ]]; then if [[ ${with_asymptote} == "y" ]];then include_asymptote fi + include_extras else if [[ ${with_context} == "y" ]]; then include_context -- cgit v1.2.3