1#!/bin/bash -e 2 3execution_dir="$(git rev-parse --show-toplevel)/../stdexec" 4 5git -C "${execution_dir}" rev-parse HEAD > commit.info 6cp -r "${execution_dir}"/include/stdexec/* . 7cp "${execution_dir}"/include/exec/{any_sender_of,async_scope,at_coroutine_exit,env,inline_scheduler,scope,task,sequence_senders}.hpp . 8 9(find . -name "*.hpp" -print0 || true) | while IFS= read -r -d '' f 10do 11 sed -i "s#include <stdexec/#include <sdbusplus/async/stdexec/#" -- "${f}" 12 sed -i "s#include <exec/#include <sdbusplus/async/stdexec/#" -- "${f}" 13 sed -i 's#include "\./\([^"]*\)"#include <sdbusplus/async/stdexec/\1>#' -- "${f}" 14 clang-format -i "${f}" 15done 16