need this script to auto-edit the xv6 Makefile for testing

This commit is contained in:
Remzi Arpaci-Dusseau
2019-03-31 08:49:14 -05:00
parent 935e792457
commit 1a192c1543

16
tester/xv6-edit-makefile.sh Executable file
View File

@@ -0,0 +1,16 @@
#! /bin/bash
infile=$1
testnames=$2
gawk -vtestnames=$testnames '
($1 == "_mkdir\\") {
n = split(testnames, x, ",");
for (i = 1; i <= n; i++) {
printf("\t_%s\\\n", x[i]);
}
}
{
print $0;
}' $infile