2 # generates automech.h and automech.c
4 # This file is part of ipif, part of userv-utils
6 # Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk>
7 # Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
9 # Chancellor Masters and Scholars of the University of Cambridge
10 # Copyright 2010 Tony Finch <fanf@dotat.at>
12 # This is free software; you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 3 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful, but
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with userv-utils; if not, see http://www.gnu.org/licenses/.
29 #include "forwarder.h"
30 const struct mechanism *const mechanismlists[]= {
40 echo "extern const struct mechanism mechlist_$m[];" >&3
52 for e in c h; do mv -f automech.$e.new automech.$e; done