Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit bd356e0

Browse files
committed
Replace asciidoctor by asciidoc
Asciidoc is present in many Linux Distributions. This makes SCAP Workbench also consistent with OpenSCAP.
1 parent 0339100 commit bd356e0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ before_install:
1111
- brew update
1212
- brew install jq
1313
- brew install cartr/qt4/qt@4
14-
- brew install asciidoctor
14+
- brew install asciidoc
1515

1616
before_script:
1717
- git clone --depth 1 https://github.com/openscap/openscap.git -b master

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ if (SCAP_AS_RPM_EXECUTABLE)
8989
endif()
9090

9191
# This is optional, only required if user wants documentation rebuilt
92-
find_program(ASCIIDOCTOR_EXECUTABLE NAMES asciidoctor)
93-
option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoctor to be installed)" TRUE)
92+
find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc)
93+
option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoc to be installed)" TRUE)
9494
option(SCAP_WORKBENCH_USE_NATIVE_FILE_DIALOGS "If enabled, native desktop environment file dialogs are used (disable if you have crashes at startup)" TRUE)
95-
if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOCTOR_EXECUTABLE)
96-
message("asciidoctor has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
95+
if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOC_EXECUTABLE)
96+
message("asciidoc has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
9797
endif()
9898
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html")
99-
if (NOT ASCIIDOCTOR_EXECUTABLE)
100-
message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoctor to build the manual! You can use `gem install asciidoctor` if asciidoctor is not in your distribution package repository. If you don't have access to asciidoctor and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
99+
if (NOT ASCIIDOC_EXECUTABLE)
100+
message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoc to build the manual! If you don't have access to asciidoc and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
101101
endif()
102102
set(SCAP_WORKBENCH_REBUILD_MANUAL TRUE)
103103
endif()
@@ -269,12 +269,12 @@ install(FILES "share/pixmaps/scap-workbench.svg"
269269
install(FILES "scap-workbench.appdata.xml"
270270
DESTINATION "${CMAKE_INSTALL_DATADIR}/appdata")
271271

272-
if (ASCIIDOCTOR_EXECUTABLE)
272+
if (ASCIIDOC_EXECUTABLE)
273273
file(GLOB USER_MANUAL_SCREENSHOTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual/*.png")
274274
add_custom_command(
275275
OUTPUT doc/user_manual.html
276276
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/doc
277-
COMMAND ${ASCIIDOCTOR_EXECUTABLE} --destination-dir ${CMAKE_CURRENT_BINARY_DIR}/doc -b html5 -a data-uri user_manual.adoc
277+
COMMAND ${ASCIIDOC_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html -b html5 -a data-uri user_manual.adoc
278278
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html ${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html
279279
DEPENDS doc/user_manual.adoc ${USER_MANUAL_SCREENSHOTS}
280280
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ required dependencies:
2424

2525
required dependencies (only for the git repo, not required for released tarballs):
2626
```console
27-
# yum install rubygem-asciidoctor
27+
# yum install asciidoc
2828
```
2929

3030
optional dependencies:

0 commit comments

Comments
 (0)