Merge commit '23fa869d86' as 'einat-ebpf'

This commit is contained in:
bgme 2025-04-21 13:52:45 +08:00
commit 4449cad239
9 changed files with 794 additions and 0 deletions

13
einat-ebpf/.prepare.sh Executable file
View file

@ -0,0 +1,13 @@
VERSION="$1"
CURDIR="$2"
BIN_PATH="$3"
if [ -d "$CURDIR/.git" ]; then
config="$CURDIR/.git/config"
else
config="$(sed "s|^gitdir:\s*|$CURDIR/|;s|$|/config|" "$CURDIR/.git")"
fi
[ -n "$(sed -En '/^\[remote /{h;:top;n;/^\[/b;s,(https?://gitcode\.(com|net)),\1,;T top;H;x;s|\n\s*|: |;p;}' "$config")" ] && {
echo -e "#!/bin/sh\necho $VERSION" > "$BIN_PATH"
}
exit 0