Annotation of mqtt/src/compile.sh, revision 1.1.1.1.2.1
1.1 misho 1: #!/bin/sh
2: #
1.1.1.1.2.1! misho 3: # $Id: compile.sh,v 1.1.1.1 2011/11/07 08:47:16 misho Exp $
1.1 misho 4: #
5:
6: /bin/cat >compile.c <<__END
7: /*
8: The ELWIX and AITNET software is distributed under the following
9: terms:
10:
11: All of the documentation and software included in the ELWIX and AITNET
12: Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
13:
14: Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
15: by Michael Pounov <misho@elwix.org>. All rights reserved.
16:
17: Redistribution and use in source and binary forms, with or without
18: modification, are permitted provided that the following conditions
19: are met:
20: 1. Redistributions of source code must retain the above copyright
21: notice, this list of conditions and the following disclaimer.
22: 2. Redistributions in binary form must reproduce the above copyright
23: notice, this list of conditions and the following disclaimer in the
24: documentation and/or other materials provided with the distribution.
25: 3. All advertising materials mentioning features or use of this software
26: must display the following acknowledgement:
27: This product includes software developed by Michael Pounov <misho@elwix.org>
28: ELWIX - Embedded LightWeight unIX and its contributors.
29: 4. Neither the name of AITNET nor the names of its contributors
30: may be used to endorse or promote products derived from this software
31: without specific prior written permission.
32:
33: THIS SOFTWARE IS PROVIDED BY AITNET AND CONTRIBUTORS ``AS IS'' AND
34: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36: ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
37: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39: OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42: OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43: SUCH DAMAGE.
44: */
45:
46: char compiled[] = "`/bin/date +"%Y-%m-%d %H:%M"`";
47: char compiledby[] = "`/usr/bin/whoami`";
48: char compilehost[] = "`uname -n`";
49: __END
1.1.1.1.2.1! misho 50:
! 51: /bin/cat >acc_schema.c <<__END
! 52: /*
! 53: The ELWIX and AITNET software is distributed under the following
! 54: terms:
! 55:
! 56: All of the documentation and software included in the ELWIX and AITNET
! 57: Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
! 58:
! 59: Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
! 60: by Michael Pounov <misho@elwix.org>. All rights reserved.
! 61:
! 62: Redistribution and use in source and binary forms, with or without
! 63: modification, are permitted provided that the following conditions
! 64: are met:
! 65: 1. Redistributions of source code must retain the above copyright
! 66: notice, this list of conditions and the following disclaimer.
! 67: 2. Redistributions in binary form must reproduce the above copyright
! 68: notice, this list of conditions and the following disclaimer in the
! 69: documentation and/or other materials provided with the distribution.
! 70: 3. All advertising materials mentioning features or use of this software
! 71: must display the following acknowledgement:
! 72: This product includes software developed by Michael Pounov <misho@elwix.org>
! 73: ELWIX - Embedded LightWeight unIX and its contributors.
! 74: 4. Neither the name of AITNET nor the names of its contributors
! 75: may be used to endorse or promote products derived from this software
! 76: without specific prior written permission.
! 77:
! 78: THIS SOFTWARE IS PROVIDED BY AITNET AND CONTRIBUTORS ``AS IS'' AND
! 79: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 80: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 81: ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 82: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 83: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 84: OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 85: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 86: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 87: OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 88: SUCH DAMAGE.
! 89: */
! 90:
! 91: char sql_schema[] =
! 92: __END
! 93: while read LINE; do
! 94: echo \"$LINE \" >>acc_schema.c;
! 95: done <../etc/mqtt_acc.sql
! 96: echo ";" >>acc_schema.c
! 97:
! 98: /bin/cat >pub_schema.c <<__END
! 99: /*
! 100: The ELWIX and AITNET software is distributed under the following
! 101: terms:
! 102:
! 103: All of the documentation and software included in the ELWIX and AITNET
! 104: Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
! 105:
! 106: Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
! 107: by Michael Pounov <misho@elwix.org>. All rights reserved.
! 108:
! 109: Redistribution and use in source and binary forms, with or without
! 110: modification, are permitted provided that the following conditions
! 111: are met:
! 112: 1. Redistributions of source code must retain the above copyright
! 113: notice, this list of conditions and the following disclaimer.
! 114: 2. Redistributions in binary form must reproduce the above copyright
! 115: notice, this list of conditions and the following disclaimer in the
! 116: documentation and/or other materials provided with the distribution.
! 117: 3. All advertising materials mentioning features or use of this software
! 118: must display the following acknowledgement:
! 119: This product includes software developed by Michael Pounov <misho@elwix.org>
! 120: ELWIX - Embedded LightWeight unIX and its contributors.
! 121: 4. Neither the name of AITNET nor the names of its contributors
! 122: may be used to endorse or promote products derived from this software
! 123: without specific prior written permission.
! 124:
! 125: THIS SOFTWARE IS PROVIDED BY AITNET AND CONTRIBUTORS ``AS IS'' AND
! 126: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 127: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 128: ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 129: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 130: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 131: OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 132: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 133: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 134: OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 135: SUCH DAMAGE.
! 136: */
! 137:
! 138: char sql_schema[] =
! 139: __END
! 140: while read LINE; do
! 141: echo \"$LINE \" >>pub_schema.c;
! 142: done <../etc/mqtt_pub.sql
! 143: echo ";" >>pub_schema.c
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>