aboutsummaryrefslogtreecommitdiffstats
path: root/chapter5/linux-api-headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter5/linux-api-headers.sh')
-rw-r--r--chapter5/linux-api-headers.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/chapter5/linux-api-headers.sh b/chapter5/linux-api-headers.sh
new file mode 100644
index 0000000..30383a8
--- /dev/null
+++ b/chapter5/linux-api-headers.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+make mrproper &&
+make headers &&
+find usr/include -name '.*' -delete &&
+rm usr/include/Makefile &&
+cp -rv usr/include ${LFS}/usr \ No newline at end of file