Skip to content
Snippets Groups Projects
Commit de6f6b4a authored by David Maus's avatar David Maus
Browse files

Kommandozeilenanwendung publish.cmd

parent 6196a7db
No related branches found
No related tags found
No related merge requests found
@echo off
REM Veröffentlicht die als Parameter übergebene METS-Datei
REM
REM Timestamp: <2018-03-13 11:32:46 maus>
REM Autor: David Maus <maus@hab.de>
REM
set CALABASH=java -Xmx1024m -cp %~dp0lib\calabash\xmlcalabash-1.1.16-97.jar com.xmlcalabash.drivers.Main
set TARGET=S:
echo Strukturdatendokument in digitaler Bibliothek publizieren
set input=%1
set /p signatur="Normalisierte Signatur: "
set TARGET=%TARGET%\%signatur:/=\%
if not exist %TARGET% (
echo Zielverzeichnis %TARGET% existiert nicht!
pause
exit 1
)
set TARGET=%TARGET%\meta\mets.xml
if exist %TARGET% (
del /p %TARGET%
)
%CALABASH% -i file:/%input:\=/% src/xproc/publish.xpl objectId=%signatur% targetUri=file:/%TARGET:\=/%
if not errorlevel (
echo Okay!
)
pause
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment