#!/usr/bin/env bash rm -f document.md array=("Building-and-running-explained.txt" "Makefile-explained.txt" "Project-structure-explained.txt" "Boot-explained.txt" "MMU-explained.txt" "PSRs-explained.txt" "Ramfs-explained.txt" "Exception-vector-explained.txt" "IRQ-explained.txt" "processor-modes-explained.txt" "Scheduler-explained.txt" "Linker-scripts-explained.txt" "Sources.txt") 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