Big copyright update

Uses new-style copyright notices and improves consistency a bit. Removes the
old KATE_MODELINE stuff.
This commit is contained in:
Laurence Withers 2010-11-25 15:32:52 +00:00
commit 0e9f48ff2d
87 changed files with 169 additions and 220 deletions

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/000_TopSource.cpp
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
// Below are all the includes used throughout the application.
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -6,7 +6,7 @@
if [ -z ${@CNAME@_BUILT} ]
then
@CNAME@="obj/@NAME@"
EXTRAS="${QTSTUFF}" # @TODO@ cflags, libs
EXTRAS="-D_GNU_SOURCE -DAPP_NAME=\"@NAME@\" ${QTSTUFF}" # TODO: more flags
echo "Building application ${@CNAME@}..."
@ -37,5 +37,4 @@ then
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -8,5 +8,4 @@ echo "Installing binaries into '${@DEST_BINDIR@}'"
install_file "${@CNAME@}" "${@DEST_BINDIR@}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -23,5 +23,4 @@ then
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,5 +14,4 @@ add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
add_config_option "QTSTUFF" "${COPT_QTSTUFF_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/TopSource.cpp
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
// Below are all the includes used throughout the application.
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -6,7 +6,7 @@
if [ -z ${@CNAME@_BUILT} ]
then
@CNAME@="obj/@NAME@"
EXTRAS="" # @TODO@ cflags, libs
EXTRAS="-D_GNU_SOURCE -DAPP_NAME=\"@NAME@\"" # TODO: more flags
echo "Building application ${@CNAME@}..."
@ -37,5 +37,4 @@ then
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -8,5 +8,4 @@ echo "Installing binaries into '${@DEST_BINDIR@}'"
install_file "${@CNAME@}" "${@DEST_BINDIR@}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,5 +14,4 @@ then
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -13,5 +13,4 @@ add_config_option "CXX" "${COPT_CXX_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/000_TopSource.c
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
/* Below are all the includes used throughout the application. */
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -6,7 +6,7 @@
if [ -z ${@CNAME@_BUILT} ]
then
@CNAME@="obj/@NAME@"
EXTRAS="" # @TODO@ cflags, libs
EXTRAS="-std=gnu99 -D_GNU_SOURCE -DAPP_NAME=\"@NAME@\"" # TODO: more flags
echo "Building application ${@CNAME@}..."
@ -37,5 +37,4 @@ then
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -8,5 +8,4 @@ echo "Installing binaries into '${@DEST_BINDIR@}'"
install_file "${@CNAME@}" "${@DEST_BINDIR@}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,5 +14,4 @@ then
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -13,5 +13,4 @@ add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -9,5 +9,4 @@ do
done
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -11,5 +11,4 @@ esac
do_parameter_subst DEST_BINDIR
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,8 +1,8 @@
# @P@/src/@NAME@/Doxyfile.in
#
# (c)2010, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©@YEAR@, @COPYRIGHT@
# Author: @AUTHOR@ <@EMAIL@>
# License: GPLv3
#
DOXYFILE_ENCODING = UTF-8

View file

@ -1,15 +1,14 @@
/* @P@/src/@NAME@/MainPage.dox
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
/*! \mainpage
*/
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@:syntax=doxygen
*/

View file

@ -39,5 +39,4 @@ then
@CNAME@_BUILT=1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -17,5 +17,4 @@ do
done
print_success "Documentation installed"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -7,5 +7,4 @@ fi
do_parameter_subst
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -10,5 +10,4 @@ do
done
print_success "Documentation installed"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -7,5 +7,4 @@ fi
do_parameter_subst
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -12,5 +12,4 @@ do
done
print_success "Files installed"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -7,5 +7,4 @@ fi
do_parameter_subst
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,8 +1,8 @@
; @P@/src/@NAME@/TopSource.asm
;
; (c)2010, @AUTHOR@, <@EMAIL@>.
; Released under the GNU GPLv3. See file COPYING or
; http://www.gnu.org/copyleft/gpl.html for details.
; Copyright: ©@YEAR@, @COPYRIGHT@
; Author: @AUTHOR@ <@EMAIL@>
; License: GPLv3
;
; include processor definitions
@ -12,5 +12,4 @@
__CONFIG A & B
; options for text editors
; kate: @KATE_MODELINE@
; vim: @VIM_MODELINE@

View file

@ -1,13 +1,12 @@
; @P@/src/@NAME@/BottomSource.asm
;
; (c)2010, @AUTHOR@, <@EMAIL@>.
; Released under the GNU GPLv3. See file COPYING or
; http://www.gnu.org/copyleft/gpl.html for details.
; Copyright: ©@YEAR@, @COPYRIGHT@
; Author: @AUTHOR@ <@EMAIL@>
; License: GPLv3
;
; EOF
END
; options for text editors
; kate: @KATE_MODELINE@
; vim: @VIM_MODELINE@

View file

@ -38,5 +38,4 @@ then
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -8,5 +8,4 @@ echo "Installing firmware into '${HEXDIR}'"
install_file "${@CNAME@}" "${HEXDIR}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,5 +14,4 @@ then
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -10,5 +10,4 @@ add_config_option "GPASM" "gpasm"
add_config_option "GPASM_FLAGS" ""
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/000_TopSource.c
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
/* Below are all the includes used throughout the application. */
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -37,5 +37,4 @@ then
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -8,5 +8,4 @@ echo "Installing firmware into '${HEXDIR}'"
install_file "${@CNAME@}" "${HEXDIR}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,5 +14,4 @@ then
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -10,5 +10,4 @@ add_config_option "SDCC" "sdcc"
add_config_option "SDCCFLAGS" ""
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,9 +1,9 @@
/* @P@/src/@NAME@/000_TopHeader.h
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
*
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#ifndef HEADER_@CNAME@
#define HEADER_@CNAME@
@ -11,6 +11,5 @@
// standard includes, or includes needed for type declarations
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@:syntax=cpp.doxygen
*/

View file

@ -1,15 +1,14 @@
/* @P@/src/@NAME@/TopSource.cpp
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#include "@HEADER_NAME@"
// Below are all the includes used throughout the library.
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/999_BottomHeader.h
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#endif
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@:syntax=cpp.doxygen
*/

View file

@ -32,5 +32,4 @@ do_cmd_redir "${CONFFILE}" sed \
do_cmd chmod 0644 "${CONFFILE}"
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,7 +14,8 @@ then
@CNAME@="obj/${@CNAME@_BASE}.so.${SOMAJOR}.${SOMICRO}"
@CNAME@_DEP_CFLAGS="" # @TODO@ cflags
@CNAME@_DEP_LIBS="" # @TODO@ libs
SO_EXTRA="${@CNAME@_DEP_CFLAGS} ${@CNAME@_DEP_LIBS} -lstdc++ -lc"
SO_EXTRA="${@CNAME@_DEP_CFLAGS} ${@CNAME@_DEP_LIBS} -lstdc++ -lc \
-D_GNU_SOURCE"
echo "Building library ${@CNAME@}..."
@ -51,5 +52,5 @@ then
@CNAME@_HEADER=${HDR}
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -17,5 +17,5 @@ then
@CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -94,5 +94,4 @@ true
# vim: syntax=sh:@VIM_MODELINE@
# kate: @KATE_MODELINE@

View file

@ -22,5 +22,4 @@ add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,8 +1,8 @@
# @P@/src/@NAME@/soversion
#
# (c)2010, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©@YEAR@, @COPYRIGHT@
# Author: @AUTHOR@ <@EMAIL@>
# License: GPLv3
#

View file

@ -1,9 +1,9 @@
/* @P@/src/@NAME@/000_TopHeader.h
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#ifndef HEADER_@CNAME@
#define HEADER_@CNAME@
@ -11,6 +11,5 @@
/* standard includes, or includes needed for type declarations */
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@:syntax=c.doxygen
vim: @VIM_MODELINE@:syntax=ch.doxygen
*/

View file

@ -1,15 +1,14 @@
/* @P@/src/@NAME@/000_TopSource.c
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#include "@HEADER_NAME@"
/* Below are all the includes used throughout the library. */
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/999_BottomHeader.h
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
#endif
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@:syntax=c.doxygen
*/

View file

@ -34,5 +34,4 @@ do_cmd_redir "${CONFFILE}" sed \
do_cmd chmod 0755 "${CONFFILE}"
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -14,7 +14,8 @@ then
@CNAME@="obj/${@CNAME@_BASE}.so.${SOMAJOR}.${SOMICRO}"
@CNAME@_DEP_CFLAGS="" # @TODO@ cflags
@CNAME@_DEP_LIBS="" # @TODO@ libs
SO_EXTRA="${@CNAME@_DEP_CFLAGS} ${@CNAME@_DEP_LIBS} -lc"
SO_EXTRA="${@CNAME@_DEP_CFLAGS} ${@CNAME@_DEP_LIBS} -lc \
-D_GNU_SOURCE -std=gnu99"
echo "Building library ${@CNAME@}..."
@ -52,5 +53,4 @@ then
@CNAME@_HEADER=${HDR}
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -17,5 +17,4 @@ then
@CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -95,4 +95,3 @@ true
# vim: syntax=sh:@VIM_MODELINE@
# kate: @KATE_MODELINE@

View file

@ -22,5 +22,4 @@ add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,8 +1,8 @@
# @P@/src/@NAME@/soversion
#
# (c)2010, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©@YEAR@, @COPYRIGHT@
# Author: @AUTHOR@ <@EMAIL@>
# License: GPLv3
#

View file

@ -1,8 +1,8 @@
# @P@/src/@NAME@/Makefile
#
# (c)2010, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©@YEAR@, @COPYRIGHT@
# Author: @AUTHOR@ <@EMAIL@>
# License: GPLv3
#
# Build files.
@ -12,5 +12,4 @@ default:
install:
# options for text editors
# kate: @KATE_MODELINE@
# vim: syntax=make:@VIM_MODELINE@

View file

@ -30,5 +30,4 @@ else
exit 1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -19,5 +19,4 @@ else
exit 1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -9,5 +9,4 @@ add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,13 +1,12 @@
/* @P@/src/@NAME@/000_TopSource.c
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
/* Below are includes used throughout the module */
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -8,5 +8,4 @@ echo "Installing module into '${MODULEDIR}'"
install_file ${@CNAME@} ${MODULEDIR} 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -35,5 +35,5 @@ then
@CNAME@_BUILT=1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -13,5 +13,5 @@ then
@CNAME@_MONOLITHIC=1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -10,5 +10,4 @@ add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
add_config_option "MODULEDIR" "\${LIBDIR}/@TODO@/"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,3 +1 @@
source src/@NAME@/build.tests
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -39,5 +39,4 @@ then
@CNAME@_BUILT=1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -26,5 +26,4 @@ add_config_option "CXX" "${COPT_CXX_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,16 +1,17 @@
/* @P@/src/@NAME@/???.cpp
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
@TEST_HEADERS@
#include <iostream>
int main(int argc, char* argv[])
int
main(int argc, char* argv[])
{
if(argc == 2 && !strcmp(argv[1], "--print-summary")) {
std::cout << "One line summary.\n";
@ -37,7 +38,8 @@ int main(int argc, char* argv[])
return ret;
}
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -1,3 +1 @@
source src/@NAME@/build.tests
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -39,5 +39,4 @@ then
@CNAME@_BUILT=1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View file

@ -26,5 +26,4 @@ add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,9 +1,9 @@
/* @P@/src/@NAME@/???.c
/* @P@/src/@NAME@/xxx.c
*
* (c)2010, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
* Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@>
* License: GPLv3
*/
@TEST_HEADERS@
#include <stdio.h>
@ -11,7 +11,8 @@
int main(int argc, char* argv[])
int
main(int argc, char* argv[])
{
int ret = 0;
@ -29,7 +30,8 @@ int main(int argc, char* argv[])
return ret;
}
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/

View file

@ -1,9 +1,9 @@
#!/bin/bash
# lw-build-system/scripts/config-printflags.sh
#
# (c)2009, Laurence Withers <l@lwithers.me.uk>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©20072010, Laurence Withers
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
# Script to print the flag lines for `config', given a library name.
#
@ -11,7 +11,9 @@
for pkg in $@
do
varname="$(echo "${pkg}" | tr 'a-z-+' 'A-Z__')"
echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"'
echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --libs)"'
varname="$(echo "${pkg}" | tr 'a-z-+' 'A-Z__')"
echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"'
echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --libs)"'
done
# vim: ts=4:sw=4:expandtab

View file

@ -1,9 +1,9 @@
#!/bin/bash
# lw-build-system/scripts/module-create.sh
#
# (c)2009, Laurence Withers, <l@lwithers.me.uk>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©20062010, Laurence Withers
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
# Creates a new source module.
@ -63,7 +63,8 @@ get_cname() {
do_parameter_subst() {
CNAME=$(get_cname ${NAME})
do_cmd source "${HOME}/.lwbuildrc" || exit 1
for param in P NAME CNAME AUTHOR EMAIL VIM_MODELINE KATE_MODELINE $@
YEAR="`date +%Y`"
for param in P YEAR COPYRIGHT NAME CNAME AUTHOR EMAIL VIM_MODELINE KATE_MODELINE $@
do
do_cmd_redir sedscript echo "s,@${param}@,${!param},g" || exit 1
done
@ -119,5 +120,4 @@ print_success "Module instantiated"
grep -r "@TODO@" .
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:expandtab:ts=4:sw=4

View file

@ -1,9 +1,9 @@
#!/bin/bash
# lw-build-system/scripts/release.sh
#
# (c)2009, Laurence Withers, <l@lwithers.me.uk>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
#
# Copyright: ©20062010, Laurence Withers
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
# Prepares package for release. Expects the version number on the
@ -56,7 +56,13 @@ do_cmd ./make.sh || exit 1
# build and save the documentation, if required
BUILD_DOCS=""
[ -e src/docs ] && BUILD_DOCS="1"
test_params_for_doxygen() {
[ "$2" == "doxygen" ] && BUILD_DOCS="1"
}
for params in src/*/.params
do
test_params_for_doxygen $(cat ${params})
done
if [ ! -z ${BUILD_DOCS} ]
then
do_cmd ./make.sh docs || exit 1
@ -88,5 +94,4 @@ fi
# clean up
rm -rf "${PKGNAME}" "${PKGNAME}-doc"
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: syntax=sh:ts=4:sw=4:expandtab

View file

@ -1,9 +1,9 @@
#!/bin/bash
# lw-build-system/scripts/version.sh
#
# (c)2009, Laurence Withers <l@lwithers.me.uk>.
# Released under the GNU GPLv3. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
# Copyright: ©20072010, Laurence Withers
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
# Script to automate bumping of version or soversion files, and pushing
# changes (and tags) to the origin repository.