Whamcloud - gitweb
import libsysio for b_newsysio
[fs/lustre-release.git] / libsysio / tests / gendrvdata.sh
1 #!/bin/sh
2
3 #    This Cplant(TM) source code is the property of Sandia National
4 #    Laboratories.
5 #
6 #    This Cplant(TM) source code is copyrighted by Sandia National
7 #    Laboratories.
8 #
9 #    The redistribution of this Cplant(TM) source code is subject to the
10 #    terms of the GNU Lesser General Public License
11 #    (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html)
12 #
13 #    Cplant(TM) Copyright 1998-2003 Sandia Corporation. 
14 #    Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
15 #    license for use of this work by or on behalf of the US Government.
16 #    Export of this program may require a license from the United States
17 #    Government.
18
19 # This library is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU Lesser General Public
21 # License as published by the Free Software Foundation; either
22 # version 2.1 of the License, or (at your option) any later version.
23
24 # This library is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 # Lesser General Public License for more details.
28
29 # You should have received a copy of the GNU Lesser General Public
30 # License along with this library; if not, write to the Free Software
31 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #
33 # Questions or comments about this library should be sent to:
34 #
35 # Lee Ward
36 # Sandia National Laboratories, New Mexico
37 # P.O. Box 5800
38 # Albuquerque, NM 87185-1110
39 #
40 # lee@sandia.gov
41
42 echo '/*'
43 echo ' * This file automatically generated by gendrvdata.sh. All changes'
44 echo ' * will be lost!'
45 echo ' */'
46 echo
47 echo '#include <stdlib.h>'
48 echo
49 echo '#include "test.h"'
50 echo
51 for i in $@; do
52         echo "extern int _sysio_${i}_init(void);"
53 done
54 echo
55 echo 'int (*drvinits[])(void) = {'
56
57 for i in $@; do
58         echo "  _sysio_${i}_init,"
59 done
60 echo "  NULL"
61 echo "};"