2 # generates automech.h and automech.c
4 # Copyright (C) 2000 Ian Jackson
6 # This is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with userv-utils; if not, write to the Free Software
18 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #include "forwarder.h"
25 const struct mechanism *const mechanismlists[]= {
35 echo "extern const struct mechanism mechlist_$m[];" >&3
47 for e in c h; do mv -f automech.$e.new automech.$e; done