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
parent 0351923ed7
commit 0e9f48ff2d
87 changed files with 169 additions and 220 deletions

View File

@ -1,7 +1,9 @@
#!/bin/bash
#
# (c)2009, Laurence Withers. Released under the GNU GPL. See file
# COPYING for details.
# Copyright: ©20062010, Laurence Withers.
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
#
@ -53,6 +55,11 @@ then
exit 1
fi
do_cmd source "${LWBUILDRC}" || exit 1
if [ -z "${COPYRIGHT}" ]
then
echo "You now need to set COPYRIGHT= in ~/.lwbuildrc ."
exit 1
fi
@ -84,8 +91,8 @@ do_cmd find . -type f -exec sed \
-e "s,@P@,${P},g" \
-e "s,@AUTHOR@,${AUTHOR},g" \
-e "s,@EMAIL@,${EMAIL},g" \
-e "s,@COPYRIGHT@,${COPYRIGHT},g" \
-e "s,@YEAR@,${YEAR},g" \
-e "s,@KATE_MODELINE@,${KATE_MODELINE},g" \
-e "s,@VIM_MODELINE@,${VIM_MODELINE},g" \
-i {} \; || exit 1
@ -97,5 +104,4 @@ echo " ======== TODO list ========"
find . -type f -a -not -path './scripts/build.*' -exec grep -Hrn @TODO@ {} \;
print_success "Done"
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4

View File

@ -1,7 +1,8 @@
#!/bin/bash
#
# (c)2009, Laurence Withers. Released under the GNU GPL. See file
# COPYING for details.
# Copyright: ©20062010, Laurence Withers.
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
[ -z "${VERBOSE}" ] && VERBOSE="0"
@ -59,5 +60,4 @@ echo " ${SCRIPT_ROOT}/scripts/ -> ${PROJECT_ROOT}/scripts/"
do_cmd ln -s ${SCRIPT_ROOT}/scripts/* scripts/ || exit 1
print_success "Done"
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4

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.
#
@ -15,3 +15,5 @@ do
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.

View File

@ -5,8 +5,7 @@
AUTHOR=""
EMAIL=""
KATE_MODELINE="replace-trailing-space-save true; space-indent true; tab-width 4;"
COPYRIGHT=""
VIM_MODELINE="expandtab:ts=4:sw=4"
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4

View File

@ -1,8 +1,10 @@
@P@
========================================================================
(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
See file COPYING for detail license information.
Really Quick Instructions
-------------------------

View File

@ -1,10 +1,9 @@
# @P@/config
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@
#
# (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
#
# This file contains options used to build @P@.

View File

@ -1,9 +1,9 @@
#!/bin/bash
# @P@/make.sh
#
# (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
#
@ -292,5 +292,4 @@ done
exit 0
# kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@

View File

@ -1,9 +1,9 @@
#!/bin/bash
# @P@/test.sh
#
# (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
#
# Running this script on its own will display a summary of all the
@ -21,7 +21,7 @@ run_test() {
return 1
fi
LD_LIBRARY_PATH="obj" "${EXE}" "$@" || return 1
LD_LIBRARY_PATH="obj:${LD_LIBRARY_PATH}" "${EXE}" "$@" || return 1
return 0
}
@ -50,5 +50,4 @@ fi
run_test $*
# kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@

View File

@ -1,8 +1,8 @@
# @P@/scripts/functions.sh
#
# (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
#
# Common functions
@ -63,5 +63,4 @@ do_cmd_redir() {
fi
}
# kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@

View File

@ -1,8 +1,8 @@
# @P@/scripts/paths
#
# (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
#
# Default path setup. Not meant for editing; use environment variables
# to override values if needed.
@ -60,5 +60,4 @@ fi
[ -z "${WEBDIR}" ] && WEBDIR="${SRVDIR}/http"
[ -z "${CGIDIR}" ] && CGIDIR="${WEBDIR}/cgi-bin"
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@

View File

@ -1,8 +1,8 @@
# @P@/version
#
# (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
#
@ -13,5 +13,4 @@ VERMAJOR=0
VERMINOR=0
VERMICRO=0
# kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@:syntax=sh

View File

@ -1,7 +1,8 @@
#!/bin/bash
#
# (c)2009, Laurence Withers. Released under the GNU GPL. See file
# COPYING for details.
# Copyright: ©2010, Laurence Withers.
# Author: Laurence Withers <l@lwithers.me.uk>
# License: GPLv3
#
if [ $# -ne 1 ]
@ -108,5 +109,4 @@ fi
true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4