aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-01-04 14:29:34 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-01-04 14:29:34 +0100
commitad3d7ee72db60eb18ba5b697a680a9a4401ca15c (patch)
tree3c49f23f3cb56d4634ca9e82214a528a7888115e
parent8172505593386ee3034fd9083444bbf9a6ae5b84 (diff)
downloadlv2lint-ad3d7ee72db60eb18ba5b697a680a9a4401ca15c.zip
lv2lint-ad3d7ee72db60eb18ba5b697a680a9a4401ca15c.tar.gz
lv2lint-ad3d7ee72db60eb18ba5b697a680a9a4401ca15c.tar.bz2
lv2lint-ad3d7ee72db60eb18ba5b697a680a9a4401ca15c.tar.xz
man: conditionally comment-out online switches.
-rw-r--r--CMakeLists.txt10
-rw-r--r--VERSION2
-rw-r--r--lv2lint.1.in (renamed from lv2lint.1)18
3 files changed, 18 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72a01bd..1e2d7bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,10 @@ if(ENABLE_ONLINE_TESTS)
pkg_search_module(CURL REQUIRED libcurl>=7.0.0)
include_directories(${CURL_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CURL_LDFLAGS})
+
+ set(MAN "")
+else()
+ set(MAN "./")
endif()
if(NOT (WIN32 OR APPLE))
@@ -70,13 +74,15 @@ set_target_properties(lv2lint PROPERTIES INTERPROCEDURAL_OPTIMIZATION true) # -f
target_link_libraries(lv2lint ${LIBS})
install(TARGETS lv2lint DESTINATION bin)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lv2lint.1.in ${PROJECT_BINARY_DIR}/lv2lint.1)
+
add_custom_command(
OUTPUT ${PROJECT_BINARY_DIR}/lv2lint.1.gz
COMMAND ${GZIP} ARGS
- "-c9" ${CMAKE_CURRENT_SOURCE_DIR}/lv2lint.1
+ "-c9" ${CMAKE_BINARY_DIR}/lv2lint.1
">" ${PROJECT_BINARY_DIR}/lv2lint.1.gz
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/lv2lint.1)
+ ${CMAKE_BINARY_DIR}/lv2lint.1)
add_custom_target(LV2LINT_MAN_GZ ALL DEPENDS ${PROJECT_BINARY_DIR}/lv2lint.1.gz)
install(FILES "${PROJECT_BINARY_DIR}/lv2lint.1.gz" DESTINATION share/man/man1)
diff --git a/VERSION b/VERSION
index 6aa9378..25bc676 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.219
+0.1.221
diff --git a/lv2lint.1 b/lv2lint.1.in
index cf64ef5..b3a5fef 100644
--- a/lv2lint.1
+++ b/lv2lint.1.in
@@ -1,4 +1,4 @@
-.TH LV2LINT "1" "Nov 18, 2017"
+.TH LV2LINT "1" "Jan 04, 2018"
.SH NAME
lv2lint \- an LV2 lintian
@@ -37,15 +37,15 @@ Print usage information
.IP
Show verbose test item documentation
-.HP
-\fB\-o\fR
-.IP
-Run online test items (valid only if online tests were built in at compile time)
+@MAN@.HP
+@MAN@\fB\-o\fR
+@MAN@.IP
+@MAN@Run online test items
-.HP
-\fB\-m\fR
-.IP
-Create mail to plugin author (valid only if online tests were built in at compile time)
+@MAN@.HP
+@MAN@\fB\-m\fR
+@MAN@.IP
+@MAN@Create mail to plugin author
.HP
\fB\-S\fR warn|note|pass|all