laconicd-deprecated/docs/pre.sh
Federico Kunze 614e62fb7e
additions
2021-04-18 17:54:18 +02:00

12 lines
302 B
Bash
Executable File

#!/usr/bin/env bash
mkdir -p modules
for D in ../x/*; do
if [ -d "${D}" ]; then
rm -rf "modules/$(echo $D | awk -F/ '{print $NF}')"
mkdir -p "modules/$(echo $D | awk -F/ '{print $NF}')" && cp -r $D/spec/* "$_"
fi
done
cat ../x/README.md | sed 's/\.\/x/\/x/g' | sed 's/spec\/README.md//g'