head	1.2;
access;
symbols
	RELENG_3_0_0_RELEASE:1.1.1.1
	v1_0:1.1.1.1
	VINUM:1.1.1;
locks; strict;
comment	@# @;


1.2
date	98.10.23.11.56.44;	author peter;	state dead;
branches;
next	1.1;

1.1
date	98.09.16.05.56.21;	author grog;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.09.16.05.56.21;	author grog;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Refer to vinum driver sources in a single location (outside of the
kernel src/sys tree, sigh - it should really be sys/dev/vinum/*).
@
text
@#!/bin/sh
# Make statetexts.h from vinumstate.h
# $Id: makestatetext,v 1.1 1998/09/16 05:56:21 grog Exp $
infile=vinumstate.h
ofile=statetexts.h
cat <COPYRIGHT > $ofile

echo >>$ofile "/* Created by $0 on" `date`.  "Do not edit */"
echo >>$ofile
echo >>$ofile "/* Drive state texts */"
echo >>$ofile "char *drivestatetext [] = 
  { "
egrep  -e 'drive_[A-z0-9]*,'  <$infile | grep -v = | sed 's: *drive_\([^,]*\).*:  \"\1\",:' >>$ofile
cat <<FOO >> $ofile
  };

/* Subdisk state texts */
char *sdstatetext [] =
  { 
FOO
egrep  -e 'sd_[A-z0-9]*,' $infile | grep -v = | sed 's: *sd_\([^,]*\).*:  \"\1\",:' >>$ofile
cat <<FOO >> $ofile
  };

/* Plex state texts */
char *plexstatetext [] =
  { 
FOO
egrep  -e 'plex_[A-z0-9]*,' $infile | grep -v = | sed 's: *plex_\([^,]*\).*:  \"\1\",:' >>$ofile
cat <<FOO >> $ofile
  };

/* Volume state texts */
char *volstatetext [] =
  { 
FOO
egrep  -e 'volume_[A-z0-9]*,' $infile | grep -v = | sed 's: *volume_\([^,]*\).*:  \"\1\",:' >>$ofile
cat <<FOO >> $ofile
  };
FOO
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
# $Id: makestatetext,v 1.4 1998/03/13 05:36:16 grog Exp grog $
@


1.1.1.1
log
@Import base vinum lkm sources
@
text
@@
