
\documentclass[11pt, oneside]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{url}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{url}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{Read-Me}
\author{Richard Koch}
\date{\today}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
\section{TeXLive-2022}
This is the major piece of the MacTeX-2022 package. Recall again that only the TeXLive-2022-Start.pkg is needed, so there is no need to create the full package or notarize.

\section{Creating the Root Folder}


 
The compile system must contain X11. Get it at X11Quartz if it isn't there.

 On the compile system, issue the commands
 \begin{verbatim}
      cd /usr/local
      sudo mv texlive texlive-old
 \end{verbatim}
 
 Then make sure local configuration files for TeX Live are disabled, perhaps by writing
  \begin{verbatim}
     cd 
     cd Library
     mv texmf texmfold
     rm -R texlive
 \end{verbatim}
 
 
 Then create a folder containing the tlpretest, which will later be updated with the same command. To do that, make a directory named
 texlive2022pretest and then
 \begin{verbatim}
      cd
      cd texlive2022pretest
      rsync -a --delete --exclude="mactex*" ftp.math.utah.edu::tlpretest .
\end{verbatim}

The last line here obtains a copy from the utah mirror site for pretest releases. If time is of the essence, but not otherwise, download directly
from the tug home site:

\newpage
 \begin{verbatim}
      cd
      cd texlive2022pretest
      rsync -a --delete --exclude="mactex*" ftp.tug.org::tlpretext .
\end{verbatim}

 
When first building binaries, it is necessary to submit them to Karl, wait for him to install them in the pretest and wait overnight
for the pretest to make its way to mirror sites.

 
 Then install TeX Live from the svn directory by
 \begin{verbatim}
 TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
 export TEXLIVE_INSTALL_NO_CONTEXT_CACHE
 cd
 cd texlive2022pretest
 sudo env  TEXLIVE_INSTALL_NO_CONTEXT_CACHE=$TEXLIVE_INSTALL_NO_CONTEXT_CACHE ./install-tl
 \end{verbatim}
 
 This will run the graphic Unix install script. If not, change ``./install-tl'' to ``./install-tl --gui tcl''. The default values will be correctly chosen for the Macintosh. Change the paper size option to ``letter''.
 Then start installation.

When installation is complete, switch the default tlmgr repository to the final value using
the command 
\begin{verbatim}
     sudo /usr/local/texlive/2022/bin/x86_64-darwin/tlmgr option repository \
          http://mirror.ctan.org/systems/texlive/tlnet
\end{verbatim} 


After these steps, the final TeXLive directory ``root''  can be built, using the command:
\begin{verbatim}
     sudo sh buildPackage.sh
\end{verbatim}


Finally repair /usr/local  by
\begin{verbatim}
      cd
      cd /usr/local
      sudo rm -R texlive
      sudo mv texlive-temp texlive
\end{verbatim}

This root file is  all  that is needed to make MacTeX. 

Most binaries will be signed, but some will not, so sign and adopt a hardened runtime for everything using
\begin{verbatim}
     sudo sh liposcriptsignallapps
\end{verbatim}

This script signs lz4, wget, and xz in tlpkg/installer, and over 100 apps in the app directory. Note that mf and xdvi and dvisvgm require third party library exceptions because they link with X11; dvisvgm also links with libgs. The four luatex binaries require two exceptions.

We also remove four pieces of documentation which causes notarize problems in April and May of 2022. It would be good to discuss this with Apple and eventually remove these fixes.



\section{Creating the Install Package} 

Then after reviewing the various scripts and the folders MyResources and Scripts, 
\begin{verbatim}
     sudo sh buildPackage.sh
     cd CreateInstallPackage
     sudo sh pkgbuildscript.sh
\end{verbatim}




  
\end{document}  