#!/bin/bash # Note: This script is intended to be run from the root of the repository. # # This script modifies conanfile.py such that the specified version of libXRPL is used. if [[ -z "$1" ]]; then cat <&1 | grep -q 'GNU' && echo true || echo false) echo "+ Updating required libXRPL version to $VERSION" if [[ "$GNU_SED" == "false" ]]; then sed -i '' -E "s|'xrpl/[a-zA-Z0-9\\.\\-]+'|'xrpl/$VERSION'|g" conanfile.py else sed -i -E "s|'xrpl/[a-zA-Z0-9\\.\\-]+'|'xrpl/$VERSION'|g" conanfile.py fi