Add missing files
[bcusdk.git] / build / gencitemplate.in
blob259a8a4cbb9e169482a31e6ebf2b62c023a72fa8
1 #!/bin/bash
2 # BCU SDK bcu development enviroment
3 # Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 set -e
20 version="@VERSION@"
21 XML=@XMLDIR@
23 progname="`basename \"$0\"`"
25 usage()
27 cat >&2 <<END
28 $progname $version Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at>
29 creates a configuration description template
31 Usage: $progname [options] application_information configuration_desc
33 END
34 exit 1
37 if [ $# != 2 ]; then
38 echo "$progname: wrong parameter count"
39 usage
43 xsltproc $XML/AppInfoToConfigDescSample.xslt "$1" > "$2.tmp" || exit 1
44 xmllint --format "$2.tmp" > "$2"
45 rm "$2.tmp"
47 exit 1