diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2008-04-08 21:53:48 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2008-04-08 21:53:48 +0000 |
commit | f049a01758b743e84a69131c6429554b2182765e (patch) | |
tree | 5e42f45ba729bdb69a56f9de1a78d4583c5ade4f | |
parent | 815864ac740893e514bcb0ec1811575737aeee4f (diff) |
be more exact
-rw-r--r-- | distrib/sets/lists/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/distrib/sets/lists/Makefile b/distrib/sets/lists/Makefile index ec738a49e..3fc023c2b 100644 --- a/distrib/sets/lists/Makefile +++ b/distrib/sets/lists/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2008/04/07 20:59:41 todd Exp $ +# $OpenBSD: Makefile,v 1.4 2008/04/08 21:53:47 todd Exp $ # Various list maintenance functions @@ -25,6 +25,7 @@ archs = ${basefiles:S/^md.//} mdtomi: @echo "Checking for common md file lines for migration to mi files:" @for xdir in x*; do \ + [ "$$xdir" = "xfont" ] && continue; \ dir=$$(mktemp -d /tmp/mdtomi.XXXXXXXXXX); \ i1=first; \ for a in ${archs}; do \ @@ -42,12 +43,12 @@ mdtomi: echo "If any common md files were found, migrating to mi files:"; \ cat $$dir/mi | while read line; do \ echo "==> $$line"; \ - for line2 in $$(grep "^$$line$$" $$xdir/m*); do \ + for line2 in $$(grep "^$${line}$$" $$xdir/m*); do \ f=$${line2%:*}; \ - grep -v $$line $$f > $$f.tmp && mv $$f.tmp $$f; \ + grep -v "^$${line}$$" $$f > $$f.tmp && mv $$f.tmp $$f; \ echo "===> -$$line2"; \ done; \ - echo "===> +$$d/mi"; \ + echo "===> +$$xdir/mi"; \ echo $$line >> $$xdir/mi; \ done; rm -rf $$dir; \ done |