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/{scope,task}.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 clang-format -i "${f}" 14done 15