Skip to content

Commit

Permalink
Added dependency generation tool wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
berdandy committed Oct 22, 2024
1 parent 8e9915e commit 6d4e274
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/depgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

if [ $# -eq 0 ]; then
echo "Usage: $0 <build-files...>"
exit 1
fi

FILES=$@

echo "{"
for i in $FILES; do
chatlink=$(grep -ohP '(?<=\[&)[A-Za-z0-9].+(?=\])' $i)
deps=$(chatr -D $chatlink)
echo "'$(basename $i)': " $deps ","
done
echo "}"

0 comments on commit 6d4e274

Please sign in to comment.