The current method fetches files from git.ceph.com, which is unreliable
and sometimes causes the file to contain HTML output instead of the C++ code.
Fetching from GitHub is a more reliable way to get the C++ code.
Fixes: https://tracker.ceph.com/issues/68669
Signed-off-by: Laura Flores <lflores@ibm.com>
echo "unknown release '$(librados-config --release)'" >&2
return 1;;
esac
-DL_PREFIX="http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=${BRANCH};f=examples/librados/"
-#DL_PREFIX="https://raw.githubusercontent.com/ceph/ceph/master/examples/librados/"
+DL_PREFIX="https://raw.githubusercontent.com/ceph/ceph/${BRANCH}/examples/librados/"
DESTDIR=$(pwd)
function cleanup () {