1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 19:07:54 +01:00
build-container-installer/docs/Makefile
2024-07-09 10:20:38 -04:00

12 lines
No EOL
360 B
Makefile

SHELL = /bin/bash
docs:
find -name '*.md' | while read -r line; \
do \
source_file=$${line:2}; \
final_file=$${source_file//\//_}; \
mv "$${source_file}" "$${final_file}"; \
no_ext_source=$$(basename -s .md $$source_file); \
no_ext_final=$$(basename -s .md $$final_file); \
sed -i "s/($${no_ext_source})/($${no_ext_final})/g" *.md; \
done