symlink for relpipe-in-jsontable v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 28 Oct 2020 16:30:58 +0100
branchv_0
changeset 20 e67584a06be6
parent 19 aabdab3e05a0
child 21 053054f9f702
symlink for relpipe-in-jsontable JSON is considered to be a subset of YAML and can be parsed using the same tool
bash-completion.sh
src/CMakeLists.txt
--- a/bash-completion.sh	Wed Oct 28 16:30:01 2020 +0100
+++ b/bash-completion.sh	Wed Oct 28 16:30:58 2020 +0100
@@ -93,3 +93,4 @@
 }
 
 complete -F _relpipe_in_yamltable_completion relpipe-in-yamltable
+complete -F _relpipe_in_yamltable_completion relpipe-in-jsontable
--- a/src/CMakeLists.txt	Wed Oct 28 16:30:01 2020 +0100
+++ b/src/CMakeLists.txt	Wed Oct 28 16:30:58 2020 +0100
@@ -14,6 +14,7 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 set(EXECUTABLE_FILE "relpipe-in-yamltable")
+set(EXECUTABLE_FILE_JSON "relpipe-in-jsontable")
 
 # Relpipe libraries:
 INCLUDE(FindPkgConfig)
@@ -32,6 +33,8 @@
 	relpipe-in-xmltable.cpp
 )
 
+ADD_CUSTOM_TARGET(in_mode_symlink ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ${EXECUTABLE_FILE} ${EXECUTABLE_FILE_JSON})
+
 # Link libraries:
 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES})
 set_property(TARGET ${EXECUTABLE_FILE} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)