Skip to content

Commit

Permalink
avoid counter and other missing readmes in script
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 16, 2023
1 parent 3853e7f commit 4486403
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
MODDOC=build/modules/$(echo $D | awk -F/ '{print $NF}')
rm -rf $MODDOC
mkdir -p $MODDOC && cp -r $D/README.md "$_"
DIR_NAME=$(echo $D | awk -F/ '{print $NF}')

# Skip specific directories
if [ "$DIR_NAME" != "counter" ] && [ "$DIR_NAME" != "tx" ] && [ "$DIR_NAME" != "simulation" ]; then
MODDOC=build/modules/$DIR_NAME
rm -rf $MODDOC
mkdir -p $MODDOC && cp -r $D/README.md "$_"
fi
fi
done

Expand Down

0 comments on commit 4486403

Please sign in to comment.