Team Blog의 글을 이곳 게시판의 "정보글"로 모았습니다. Team blog는 기고자가 올린 글에 질문을 받는 부담을 줄이기 위하여 댓글을 허용하지 않았습니다. 그러나 이곳 게시판으로 모으면서 댓글을 달 수 있습니다. 게시물을 작성하실 때 댓글을 원하지 않으시면 댓글을 허용하시지 않으시기를 바랍니다. 또한 불필요한 소모성 댓글을 달지 않도록 주의하여 주시기를 바랍니다.
TeX과 관련된 질문이나 답변은 QnA 마당을 이용하십시오. TeX과 관련된 질문은 지웁니다
리눅스에서 글 올리다 보니 파일 업로드는 못하고요. 그냥 배치 파일 내용을 밑에다 씁니다. 그런데 이게 동작하려면 윈도용 sed를 설치하셔야 해요. 이 프로그램은 Tex Live에 포함되어 있지 않은 것으로 압니다. 그리고 디렉토리 이름을 조금 수정하셔야 합니다.
@echo off
rem tlupdateall.bat
rem written by Karnes.
rem ----------------------------
rem catch tl dir
pushd %TEMP%
kpsewhich latex.ltx >_tmp
sed -e "s/texmf-dist\/tex\/latex\/base\/latex.ltx$//g" <_tmp >__tmp
sed -e "s/^/set TMPTLDIR=/g" <__tmp >__tmp.bat
sed -e "s/^/set BSTMPTLDIR=/g" <__tmp >___tmp
sed -e "s/\//\\/g" <___tmp >___tmp.bat
todos __tmp.bat >%TEMP%\null
todos ___tmp.bat >%TEMP%\null
call __tmp.bat
call ___tmp.bat
del _tmp __tmp ___tmp __tmp.bat ___tmp.bat
popd
if .%BSTMPTLDIR%.==.. goto ERROR
:RUNME
rem set TLsite=http://ftp.kaist.ac.kr/tex-archive/systems/texlive/tlnet
set TLsite=http://ftp.ktug.or.kr/tex-archive/systems/texlive/tlnet
set KCsite=http://ftp.ktug.or.kr/KTUG/texlive/2009
set TEXLIVEFOLDER=%BSTMPTLDIR%
rem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if .%1.==.-down. goto DOWNLOAD
if .%1.==.-nodown. goto NODOWNLOAD
rem default = NODOWNLOAD
goto NODOWNLOAD
:DOWNLOAD
pushd %TEMP%
if exist update-tlmgr-latest.exe del update-tlmgr-latest.exe
copy /Y %TEXLIVEFOLDER%\tlpkg\installer\wget\wget.exe .
wget %TLSITE%/update-tlmgr-latest.exe
update-tlmgr-latest.exe
pause
popd
goto RUNALL
:NODOWNLOAD
call tlmgr --repository=%TLsite% update --self
if not .%errorlevel%.==.0. goto ERROR
goto RUNALL
:RUNALL
call tlmgr --repository=%TLsite% update --all
call tlmgr --repository=%KCsite% update --all
goto END
:ERROR
echo Something wrong happened.
echo Perhaps texlive isn't set up properly or tlmgr failed.
echo.
echo Try later.
goto END
:END
pause