mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 09:17:57 +00:00
Handle rerunning of scripts
This commit is contained in:
9
.github/scripts/rename/binary.sh
vendored
9
.github/scripts/rename/binary.sh
vendored
@@ -31,14 +31,11 @@ fi
|
|||||||
|
|
||||||
FILE="${DIRECTORY}/cmake/XrplCore.cmake"
|
FILE="${DIRECTORY}/cmake/XrplCore.cmake"
|
||||||
|
|
||||||
echo "BEFORE"
|
# Replace the comment and the command. Handle the situation where this or other
|
||||||
cat "${FILE}"
|
# scripts are rerun.
|
||||||
|
|
||||||
echo "Processing file: ${FILE}"
|
echo "Processing file: ${FILE}"
|
||||||
${SED_COMMAND} -i -E 's/For the time being.+/Create a symlink named "rippled" for backward compatibility./g' "${FILE}"
|
${SED_COMMAND} -i -E 's/For the time being.+/Create a symlink named "rippled" for backward compatibility./g' "${FILE}"
|
||||||
|
${SED_COMMAND} -i -E 's/add_custom_command\(TARGET xrpld.+/add_custom_command(TARGET xrpld POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink "xrpld" "rippled")/g' "${FILE}"
|
||||||
${SED_COMMAND} -i -E 's/set_target_properties\(xrpld.+/add_custom_command(TARGET xrpld POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink "xrpld" "rippled")/g' "${FILE}"
|
${SED_COMMAND} -i -E 's/set_target_properties\(xrpld.+/add_custom_command(TARGET xrpld POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink "xrpld" "rippled")/g' "${FILE}"
|
||||||
|
|
||||||
echo "AFTER"
|
|
||||||
cat "${FILE}"
|
|
||||||
|
|
||||||
echo "Processing complete."
|
echo "Processing complete."
|
||||||
|
|||||||
Reference in New Issue
Block a user