Module Name: src Committed By: kre Date: Sun Sep 16 22:31:30 UTC 2018
Modified Files: src/bin/sh: mkinit.sh Log Message: Begone unspecified test-a ... and be more obious what it was doing. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/bin/sh/mkinit.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/sh/mkinit.sh diff -u src/bin/sh/mkinit.sh:1.7 src/bin/sh/mkinit.sh:1.8 --- src/bin/sh/mkinit.sh:1.7 Sun Mar 27 14:34:46 2016 +++ src/bin/sh/mkinit.sh Sun Sep 16 22:31:30 2018 @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: mkinit.sh,v 1.7 2016/03/27 14:34:46 christos Exp $ +# $NetBSD: mkinit.sh,v 1.8 2018/09/16 22:31:30 kre Exp $ # Copyright (c) 2003 The NetBSD Foundation, Inc. # All rights reserved. @@ -102,8 +102,11 @@ for src in $srcs; do read -r line [ "$line" != "}" ] do - [ -n "$line" -a "$line" = "${line###}" ] && - line=" $line" + case "$line" in + ('') ;; + ('#'*) ;; + (*) line=" $line";; + esac ev="${ev}${line}${nl}" done ev="${ev} }${nl}"