mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
6c15b944b1
Export tests do not need keytest.py.
32 lines
931 B
CMake
Executable File
32 lines
931 B
CMake
Executable File
# This file is part of LyX, the document processor.
|
|
# Licence details can be found in the file COPYING.
|
|
#
|
|
# Copyright (c) 2012 Kornel Benko kornel@lyx.org
|
|
#
|
|
#
|
|
# LYX_ROOT = ${TOP_SRC_DIR}/lib/doc
|
|
# lyx =
|
|
# format = lyx16x|xhtml
|
|
# extension = 16.lyx|xhtml
|
|
# file = xxx
|
|
#
|
|
# Script should be called like:
|
|
# cmake -DLYX_ROOT=xxx \
|
|
# -Dlyx=xxx \
|
|
# -Dformat=xxx \
|
|
# -Dextension=xxx \
|
|
# -Dfile=xxx \
|
|
# -P "${TOP_SRC_DIR}/development/autotests/export.cmake"
|
|
#
|
|
|
|
message(STATUS "Executing ${lyx} -E ${format} ${file}.${extension} ${LYX_ROOT}/${file}.lyx")
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${file}.${extension})
|
|
execute_process(
|
|
COMMAND ${lyx} -E ${format} ${file}.${extension} "${LYX_ROOT}/${file}.lyx"
|
|
RESULT_VARIABLE _err)
|
|
string(COMPARE NOTEQUAL ${_err} 0 _erg)
|
|
if(_erg)
|
|
message(STATUS "Exporting ${f}.lyx to ${format}")
|
|
message(FATAL_ERROR "Export failed")
|
|
endif()
|