#!/usr/bin/env bash rm -f document.md array=("Building-and-running-explained.md" "Makefile-explained.md" "Project-structure-explained.md" "Boot-explained.md" "MMU-explained.md" "PSRs-explained.md" "Ramfs-explained.md" "Exception-vector-explained.md" "IRQ-explained.md" "processor-modes-explained.md" "Scheduler-explained.md" "Linker-scripts-explained.md" "Miscellaneous.md" "Sources.md") echo "# Raspberry PI MMU project" >> document.md echo "//TODO insert [TOC] here" >> document.md for file in "${array[@]}" do cat docs/$file >> document.md done