mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
28 lines
414 B
Batchfile
28 lines
414 B
Batchfile
|
@echo off
|
||
|
|
||
|
:: Very simple conversion from *.ts to *.nsh using xslt
|
||
|
|
||
|
pushd "%~dp0"
|
||
|
|
||
|
if "%1"=="" (
|
||
|
for %%F in (*.ts) do if "%%F" NEQ "en.ts" call :convert %%~nF
|
||
|
goto :exit
|
||
|
)
|
||
|
|
||
|
call :convert %1
|
||
|
|
||
|
:exit
|
||
|
popd
|
||
|
|
||
|
goto :EOF
|
||
|
|
||
|
:convert
|
||
|
if not exist "%~1.ts" (
|
||
|
echo File "%~1.ts" not found.
|
||
|
goto :EOF
|
||
|
)
|
||
|
|
||
|
echo %~1
|
||
|
|
||
|
"%~dp0xsltproc.exe" --output "%~dp0..\%~1.nsh" "%~dp0convert_from_ts.xsl" "%~1.ts"
|