summaryrefslogtreecommitdiff
path: root/distrib/miniroot/list2sh.awk
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/miniroot/list2sh.awk')
-rw-r--r--distrib/miniroot/list2sh.awk7
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/miniroot/list2sh.awk b/distrib/miniroot/list2sh.awk
index 4ae2093d480..743be0df5fa 100644
--- a/distrib/miniroot/list2sh.awk
+++ b/distrib/miniroot/list2sh.awk
@@ -1,4 +1,4 @@
-# $OpenBSD: list2sh.awk,v 1.21 2014/02/21 19:14:23 deraadt Exp $
+# $OpenBSD: list2sh.awk,v 1.22 2019/04/30 17:46:04 deraadt Exp $
BEGIN {
printf("cd ${OBJDIR}\n");
@@ -19,6 +19,11 @@ $1 == "REMOVE" {
printf("rm -f ${TARGDIR}/%s\n", $2);
next;
}
+$1 == "MKDIR" {
+ printf("echo '%s'\n", $0);
+ printf("mkdir -p ${TARGDIR}/%s\n", $2);
+ next;
+}
$1 == "STRIP" {
printf("echo '%s'\n", $0);
printf("test -f ${TARGDIR}/%s && rm -fr ${TARGDIR}/%s\n", $3, $3);