-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.cmd
28 lines (28 loc) · 869 Bytes
/
install.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@ECHO OFF
REM ======================================================================
REM Install Batch for NPBT Package
REM ----------------------------------------------------------------------
REM (C) in 2017 by Norman Markgraf
REM
REM ======================================================================
REM Find TEXMFHOME
FOR /f "" %%a IN ('kpsewhich --var-value=TEXMFHOME') DO (
IF NOT EXIST %%a (
MKDIR %%a
)
if NOT EXIST %%a/tex (
MKDIR %%a/tex
)
if NOT EXIST %%a/tex/NPBT (
MKDIR %%a/tex/NPBT
)
if EXIST %%a/tex/NPBT (
echo Installing to %%a
xcopy "*.sty" "%%a" /Y
xcopy "images" "%%a" /S /Y
xcopy "README.*" "%%a" /Y
xcopy "ReleaseNotes.md" "%%a" /Y
xcopy "LICENSE" "/%%a" /Y
)
)
REM ======================================================================