Skip to content

Commit

Permalink
need this script to auto-edit the xv6 Makefile for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
remzi-arpacidusseau committed Mar 31, 2019
1 parent 935e792 commit 1a192c1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tester/xv6-edit-makefile.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a192c1

Please sign in to comment.