Skip to content

Commit

Permalink
Update to_be_raptor_linx to add default location of license file (#1558)
Browse files Browse the repository at this point in the history
* Update to_be_raptor_linx to add default location of license file

* Update to_be_raptor_linx to dump license file having license file pointer

* Update CMakeLists.txt to dump file

* Update to_be_raptor_linx
  • Loading branch information
NadeemYaseen authored Mar 4, 2024
1 parent 949fd64 commit 38743d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ if (PRODUCTION_BUILD)
REALPATH BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
add_subdirectory(${OPENLM_DIR} OPENLM_DIR)
message(STATUS "OPENLM_DIR: " ${OPENLM_DIR})
#dump openlm license file env variable default value
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/etc/config.json" JSON_DATA)
string(JSON prefixPath GET ${JSON_DATA} general license-path)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/bin/default_lic_path" "default_path=${prefixPath}\n")
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/bin/default_lic_path" "export LICENSE_LOCATION=$default_path\\;$LICENSE_LOCATION")
endif()


Expand Down
1 change: 1 addition & 0 deletions src/to_be_raptor_linx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SCRIPT_PATH=`dirname $BASH_SOURCE`
RAPTOR_PATH=`( cd "$SCRIPT_PATH" && pwd )`

[ -f $RAPTOR_PATH/../.raptorenv_lin64.sh ] && source $RAPTOR_PATH/../.raptorenv_lin64.sh
[ -f $RAPTOR_PATH/default_lic_path ] && source $RAPTOR_PATH/default_lic_path

if [[ "$RAPTOR_EXE_DEBUG" == "1" ]]; then
$RAPTOR_PATH/bin/raptor.exe "$@"
Expand Down

0 comments on commit 38743d7

Please sign in to comment.