Merge branch 'master' of tourmaline:git/lw-build-system
This commit is contained in:
		
						commit
						53c0b20f9d
					
				| 
						 | 
					@ -64,10 +64,6 @@ print_success "Done: $(pwd)"
 | 
				
			||||||
# Fixups
 | 
					# Fixups
 | 
				
			||||||
echo "Installing symlinks, fixing up stuff..."
 | 
					echo "Installing symlinks, fixing up stuff..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Move the project files to something more sensible
 | 
					 | 
				
			||||||
do_cmd mv project.kdevelop ${P}.kdevelop || exit 1
 | 
					 | 
				
			||||||
do_cmd mv project.kdevelop.filelist ${P}.kdevelop.filelist || exit 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Install devscript symlinks
 | 
					# Install devscript symlinks
 | 
				
			||||||
do_cmd ln -s ${DEVSCRIPTS}/* scripts/ || exit 1
 | 
					do_cmd ln -s ${DEVSCRIPTS}/* scripts/ || exit 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.cpp
 | 
					/* @P@/src/@NAME@/TopSource.cpp
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.cpp
 | 
					/* @P@/src/@NAME@/TopSource.cpp
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.c
 | 
					/* @P@/src/@NAME@/TopSource.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Below are all the includes used throughout the application.
 | 
					/* Below are all the includes used throughout the application. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* options for text editors
 | 
					/* options for text editors
 | 
				
			||||||
kate: @KATE_MODELINE@
 | 
					kate: @KATE_MODELINE@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					source src/@NAME@/build.install-app
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					# make paths (this is for Gentoo in particular)
 | 
				
			||||||
 | 
					build_dir_tree "${BINDIR}" || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# install binary
 | 
				
			||||||
 | 
					echo "Installing binaries into '${BINDIR}'"
 | 
				
			||||||
 | 
					for script in src/@NAME@/*.sh
 | 
				
			||||||
 | 
					do
 | 
				
			||||||
 | 
						install_file "${script}" "${BINDIR}" 0755 || return 1
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					print_success "Done"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					if [ $# -ne 0 ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					    print_failure "Too many arguments. None required for this module."
 | 
				
			||||||
 | 
					    exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					do_parameter_subst
 | 
				
			||||||
 | 
					add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
 | 
				
			||||||
 | 
					true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
 | 
				
			||||||
 | 
					# vim: expandtab:ts=4:sw=4
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# @P@/src/@NAME@/Doxyfile.in
 | 
					# @P@/src/@NAME@/Doxyfile.in
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/MainPage.dox
 | 
					/* @P@/src/@NAME@/MainPage.dox
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,11 +4,11 @@
 | 
				
			||||||
echo "Installing files into ${FILESDIR}"
 | 
					echo "Installing files into ${FILESDIR}"
 | 
				
			||||||
build_dir_tree "${FILESDIR}" || return 1
 | 
					build_dir_tree "${FILESDIR}" || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# copy across the Doxygen-generated documentation
 | 
					# copy across the files (note this copies everything with mode 0644).
 | 
				
			||||||
for file in src/@NAME@/*
 | 
					for file in src/@NAME@/*
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
    [ "$(echo $(basename ${file}) | cut -b1-6)" == "build." ] && continue
 | 
					    [ "$(echo $(basename ${file}) | cut -b1-6)" == "build." ] && continue
 | 
				
			||||||
    do_cmd cp -a ${file} ${FILESDIR} || return 1
 | 
					    install_file ${file} ${FILESDIR} 0644 || return 1
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print_success "Files installed"
 | 
					print_success "Files installed"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
; @P@/src/@NAME@/BottomSource.asm
 | 
					; @P@/src/@NAME@/BottomSource.asm
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
;  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					;  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
;  Released under the GNU GPLv2. See file COPYING or
 | 
					;  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
;  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					;  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
; @P@/src/@NAME@/TopSource.asm
 | 
					; @P@/src/@NAME@/TopSource.asm
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
;  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					;  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
;  Released under the GNU GPLv2. See file COPYING or
 | 
					;  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
;  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					;  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.c
 | 
					/* @P@/src/@NAME@/TopSource.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Below are all the includes used throughout the application.
 | 
					/* Below are all the includes used throughout the application. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* options for text editors
 | 
					/* options for text editors
 | 
				
			||||||
kate: @KATE_MODELINE@
 | 
					kate: @KATE_MODELINE@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/BottomHeader.h
 | 
					/* @P@/src/@NAME@/BottomHeader.h
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopHeader.h
 | 
					/* @P@/src/@NAME@/TopHeader.h
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.cpp
 | 
					/* @P@/src/@NAME@/TopSource.cpp
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ install_header ${@CNAME@_HEADER} ${INCLUDEDIR} 0644 || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# install config script
 | 
					# install config script
 | 
				
			||||||
echo "Installing config script into ${PKGCONFDIR}"
 | 
					echo "Installing config script into ${PKGCONFDIR}"
 | 
				
			||||||
CONFFILE="${BINDIR}/@NAME@-config"
 | 
					CONFFILE="${INSTALL_PREFIX}${BINDIR}/@NAME@-config"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
do_cmd rm -f "${CONFFILE}"
 | 
					do_cmd rm -f "${CONFFILE}"
 | 
				
			||||||
do_cmd_redir "${CONFFILE}" sed \
 | 
					do_cmd_redir "${CONFFILE}" sed \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# @P@/src/@NAME@/soversion
 | 
					# @P@/src/@NAME@/soversion
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/BottomHeader.h
 | 
					/* @P@/src/@NAME@/BottomHeader.h
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopHeader.h
 | 
					/* @P@/src/@NAME@/TopHeader.h
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					@ -8,7 +8,7 @@
 | 
				
			||||||
#ifndef HEADER_@CNAME@
 | 
					#ifndef HEADER_@CNAME@
 | 
				
			||||||
#define HEADER_@CNAME@
 | 
					#define HEADER_@CNAME@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// standard includes, or includes needed for type declarations
 | 
					/* standard includes, or includes needed for type declarations */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* options for text editors
 | 
					/* options for text editors
 | 
				
			||||||
kate: @KATE_MODELINE@
 | 
					kate: @KATE_MODELINE@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,13 @@
 | 
				
			||||||
/* @P@/src/@NAME@/TopSource.c
 | 
					/* @P@/src/@NAME@/TopSource.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "@HEADER_NAME@"
 | 
					#include "@HEADER_NAME@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Below are all the includes used throughout the library.
 | 
					/* Below are all the includes used throughout the library. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* options for text editors
 | 
					/* options for text editors
 | 
				
			||||||
kate: @KATE_MODELINE@
 | 
					kate: @KATE_MODELINE@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ install_header ${@CNAME@_HEADER} ${INCLUDEDIR} 0644 || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# install config script
 | 
					# install config script
 | 
				
			||||||
echo "Installing config script into ${BINDIR}"
 | 
					echo "Installing config script into ${BINDIR}"
 | 
				
			||||||
CONFFILE="${BINDIR}/@NAME@-config"
 | 
					CONFFILE="${INSTALL_PREFIX}${BINDIR}/@NAME@-config"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
do_cmd rm -f "${CONFFILE}"
 | 
					do_cmd rm -f "${CONFFILE}"
 | 
				
			||||||
do_cmd_redir "${CONFFILE}" sed \
 | 
					do_cmd_redir "${CONFFILE}" sed \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# @P@/src/@NAME@/soversion
 | 
					# @P@/src/@NAME@/soversion
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					/* @P@/src/@NAME@/TopSource.c
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Below are includes used throughout the module */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* options for text editors
 | 
				
			||||||
 | 
					kate: @KATE_MODELINE@
 | 
				
			||||||
 | 
					vim: @VIM_MODELINE@
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					source src/@NAME@/build.module
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					source src/@NAME@/build.install-module
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					build_target @NAME@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# make paths (this is for Gentoo in particular)
 | 
				
			||||||
 | 
					build_dir_tree "${MODULEDIR}" || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# install module
 | 
				
			||||||
 | 
					echo "Installing module into '${MODULEDIR}'"
 | 
				
			||||||
 | 
					install_file ${@CNAME@} ${MODULEDIR} 0755 || return 1
 | 
				
			||||||
 | 
					print_success "Done"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,39 @@
 | 
				
			||||||
 | 
					# These are external variables, and shouldn't clash with anything else
 | 
				
			||||||
 | 
					#  @CNAME@
 | 
				
			||||||
 | 
					#  @CNAME@_BUILT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -z ${@CNAME@_BUILT} ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					    @CNAME@="obj/@NAME@.so"
 | 
				
			||||||
 | 
					    SO_EXTRA="" # @TODO@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    echo "Building module ${@CNAME@}..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    do_cmd source src/@NAME@/build.monolithic || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    MODIFIED=0
 | 
				
			||||||
 | 
					    for test in ${MONOLITHIC_TESTS} ${SRC}
 | 
				
			||||||
 | 
					    do
 | 
				
			||||||
 | 
					        if [ ${test} -nt ${@CNAME@} ]
 | 
				
			||||||
 | 
					        then
 | 
				
			||||||
 | 
					            MODIFIED=1
 | 
				
			||||||
 | 
					            break
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					    done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if [ ${MODIFIED} -ne 0 ]
 | 
				
			||||||
 | 
					    then
 | 
				
			||||||
 | 
					        echo " Compiling"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        do_cmd ${CC} ${CFLAGS} -Iobj -shared -fpic -o "${@CNAME@}" \
 | 
				
			||||||
 | 
					            ${SRC} ${SO_EXTRA} || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        print_success "Module built"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        print_success "Module up to date"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @CNAME@_BUILT=1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					# These are external variables, and shouldn't clash with anything else
 | 
				
			||||||
 | 
					#  @CNAME@_MONOLITHIC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SRC="obj/@NAME@.c"
 | 
				
			||||||
 | 
					HDR="obj/@HEADER_NAME@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MONOLITHIC_TESTS="src/@NAME@/build.module src/@NAME@/build.monolithic"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -z "${@CNAME@_MONOLITHIC}" ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					    MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)"
 | 
				
			||||||
 | 
					    make_monolithic ${SRC} C || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @CNAME@_MONOLITHIC=1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					if [ $# -ne 0 ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					    print_failure "Not expecting arguments."
 | 
				
			||||||
 | 
					    exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					do_parameter_subst
 | 
				
			||||||
 | 
					add_config_option "CC" "${COPT_CC_DEFAULT}"
 | 
				
			||||||
 | 
					add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
 | 
				
			||||||
 | 
					add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
 | 
				
			||||||
 | 
					add_config_option "MODULEDIR" "${COPT_LIBDIR_DEFAULT}/@TODO@/"
 | 
				
			||||||
 | 
					true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
 | 
				
			||||||
 | 
					# vim: expandtab:ts=4:sw=4
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/???.cpp
 | 
					/* @P@/src/@NAME@/???.cpp
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
/* @P@/src/@NAME@/???.c
 | 
					/* @P@/src/@NAME@/???.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					 *  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
 *  Released under the GNU GPLv2. See file COPYING or
 | 
					 *  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					 *  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
| 
						 | 
					@ -21,10 +21,10 @@ int main(int argc, char* argv[])
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(argc == 1) {
 | 
					    if(argc == 1) {
 | 
				
			||||||
        // empty argument list
 | 
					        /* empty argument list */
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TODO
 | 
					    /* TODO */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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)"'
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,126 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ $# -eq 0 ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
						echo "Usage: $0 COMMANDS"
 | 
				
			||||||
 | 
						echo ""
 | 
				
			||||||
 | 
						echo "  major         - bump major version, reset minor and micro"
 | 
				
			||||||
 | 
						echo "  minor         - bump minor version, reset micro"
 | 
				
			||||||
 | 
						echo "  micro         - bump micro version"
 | 
				
			||||||
 | 
						echo "  libmajor LIB  - as major but for soversion"
 | 
				
			||||||
 | 
						echo "  libminor LIB  - as minor but for soversion"
 | 
				
			||||||
 | 
						echo "  libmicro LIB  - as micro but for soversion"
 | 
				
			||||||
 | 
						echo "  tag           - tag version"
 | 
				
			||||||
 | 
						echo "  push          - do a git-push with --tags"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					edit_versions() {
 | 
				
			||||||
 | 
						file="$1"
 | 
				
			||||||
 | 
						shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						SEDCMD=""
 | 
				
			||||||
 | 
						while [ $# -ne 0 ]
 | 
				
			||||||
 | 
						do
 | 
				
			||||||
 | 
							var="$1"
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
 | 
							value="$1"
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							SEDCMD="${SEDCMD} -e s,^${var}=.*$,${var}=${value},"
 | 
				
			||||||
 | 
						done
 | 
				
			||||||
 | 
						sed ${SEDCMD} -i "${file}"
 | 
				
			||||||
 | 
						git-commit -m "Bump version" "${file}"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_major() {
 | 
				
			||||||
 | 
						source version
 | 
				
			||||||
 | 
						edit_versions "version" "VERMAJOR" "$[${VERMAJOR} + 1]" "VERMINOR" "0" "VERMICRO" "0"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_minor() {
 | 
				
			||||||
 | 
						source version
 | 
				
			||||||
 | 
						edit_versions "version" "VERMINOR" "$[${VERMINOR} + 1]" "VERMICRO" "0"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_micro() {
 | 
				
			||||||
 | 
						source version
 | 
				
			||||||
 | 
						edit_versions "version" "VERMICRO" "$[${VERMICRO} + 1]"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_somajor() {
 | 
				
			||||||
 | 
						source src/$1/soversion
 | 
				
			||||||
 | 
						edit_versions "src/$1/soversion" "SOMAJOR" "$[${SOMAJOR} + 1]" "SOMINOR" "0" "SOMICRO" "0"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_sominor() {
 | 
				
			||||||
 | 
						source src/$1/soversion
 | 
				
			||||||
 | 
						edit_versions "src/$1/soversion" "SOMINOR" "$[${SOMINOR} + 1]" "SOMICRO" "0"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bump_somicro() {
 | 
				
			||||||
 | 
						source src/$1/soversion
 | 
				
			||||||
 | 
						edit_versions "src/$1/soversion" "SOMICRO" "$[${SOMICRO} + 1]"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					do_tag() {
 | 
				
			||||||
 | 
						source version
 | 
				
			||||||
 | 
						git-tag "${VERMAJOR}.${VERMINOR}.${VERMICRO}"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					do_push() {
 | 
				
			||||||
 | 
						git-push
 | 
				
			||||||
 | 
						git-push --tags
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -ex
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					while [ $# -ne 0 ]
 | 
				
			||||||
 | 
					do
 | 
				
			||||||
 | 
						case $1 in
 | 
				
			||||||
 | 
						major)
 | 
				
			||||||
 | 
							bump_major
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						minor)
 | 
				
			||||||
 | 
							bump_minor
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						micro)
 | 
				
			||||||
 | 
							bump_micro
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						libmajor)
 | 
				
			||||||
 | 
							bump_somajor $2
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						libminor)
 | 
				
			||||||
 | 
							bump_sominor $2
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						libmicro)
 | 
				
			||||||
 | 
							bump_somicro $2
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tag)
 | 
				
			||||||
 | 
							do_tag
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						push)
 | 
				
			||||||
 | 
							do_push
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						*)
 | 
				
			||||||
 | 
							echo "Unrecognised command: $1"
 | 
				
			||||||
 | 
							exit 1
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
						esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						shift
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					true
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
@P@
 | 
					@P@
 | 
				
			||||||
========================================================================
 | 
					========================================================================
 | 
				
			||||||
(c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					(c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
Released under the GNU GPLv2. See file COPYING or 
 | 
					Released under the GNU GPLv2. See file COPYING or 
 | 
				
			||||||
http://www.gnu.org/copyleft/gpl.html for details.
 | 
					http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,6 +10,8 @@ Really Quick Instructions
 | 
				
			||||||
To build: ./make.sh
 | 
					To build: ./make.sh
 | 
				
			||||||
To install: ./make.sh install
 | 
					To install: ./make.sh install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You might want to edit 'config' first.
 | 
					You might want to edit 'config' first. You might also want to set
 | 
				
			||||||
 | 
					'INSTALL_PREFIX', which is prepended onto the destination of any
 | 
				
			||||||
 | 
					installed file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@TODO@
 | 
					@TODO@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
# kate: @KATE_MODELINE@
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
# vim: @VIM_MODELINE@
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										44
									
								
								skel/make.sh
								
								
								
								
							
							
						
						
									
										44
									
								
								skel/make.sh
								
								
								
								
							| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
# @P@/make.sh
 | 
					# @P@/make.sh
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2006-2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					@ -22,10 +22,6 @@ source "config" # don't fail on error, since last command in config might return
 | 
				
			||||||
# Get version information
 | 
					# Get version information
 | 
				
			||||||
source version || exit 1
 | 
					source version || exit 1
 | 
				
			||||||
VERSION="${VERMAJOR}.${VERMINOR}.${VERMICRO}"
 | 
					VERSION="${VERMAJOR}.${VERMINOR}.${VERMICRO}"
 | 
				
			||||||
if [ ! -z "${VEREXTRA}" ]
 | 
					 | 
				
			||||||
then
 | 
					 | 
				
			||||||
    VERSION="${VERSION}-${VEREXTRA}"
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,6 +44,8 @@ OUTPUT_DIRS="obj html"
 | 
				
			||||||
#  MONOLITHIC_TESTS       if any file mentioned in this list is newer
 | 
					#  MONOLITHIC_TESTS       if any file mentioned in this list is newer
 | 
				
			||||||
#                         than the output file, then we recreate it
 | 
					#                         than the output file, then we recreate it
 | 
				
			||||||
#  MONOLITHIC_SOURCE      a list (in order) of the source files
 | 
					#  MONOLITHIC_SOURCE      a list (in order) of the source files
 | 
				
			||||||
 | 
					#  MONOLITHIC_OPTIONS     will #define the options to match the respective
 | 
				
			||||||
 | 
					#                         environment variables.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Recognised formats are:
 | 
					# Recognised formats are:
 | 
				
			||||||
#  none                   no special processing happens before each file
 | 
					#  none                   no special processing happens before each file
 | 
				
			||||||
| 
						 | 
					@ -68,13 +66,16 @@ make_monolithic() {
 | 
				
			||||||
    # extract options
 | 
					    # extract options
 | 
				
			||||||
    HASHLINE=0
 | 
					    HASHLINE=0
 | 
				
			||||||
    VERDEFINE=0
 | 
					    VERDEFINE=0
 | 
				
			||||||
 | 
					    HASHDEFINE=0
 | 
				
			||||||
    if [ "$2" == "C" ]
 | 
					    if [ "$2" == "C" ]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        HASHLINE=1
 | 
					        HASHLINE=1
 | 
				
			||||||
        VERDEFINE=1
 | 
					        VERDEFINE=1
 | 
				
			||||||
 | 
					        HASHDEFINE=1
 | 
				
			||||||
    elif [ "$2" == "Ch" ]
 | 
					    elif [ "$2" == "Ch" ]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        HASHLINE=1
 | 
					        HASHLINE=1
 | 
				
			||||||
 | 
					        HASHDEFINE=1
 | 
				
			||||||
    elif [ "$2" == "none" ]
 | 
					    elif [ "$2" == "none" ]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        HASHLINE=0 # dummy command
 | 
					        HASHLINE=0 # dummy command
 | 
				
			||||||
| 
						 | 
					@ -115,6 +116,14 @@ make_monolithic() {
 | 
				
			||||||
            do_cmd_redir ${MONOLITHIC_OUT} echo "#define VEREXTRA \"${VEREXTRA}\"" || return 1
 | 
					            do_cmd_redir ${MONOLITHIC_OUT} echo "#define VEREXTRA \"${VEREXTRA}\"" || return 1
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if [ ${HASHDEFINE} -ne 0 ]
 | 
				
			||||||
 | 
					        then
 | 
				
			||||||
 | 
					            for opt in ${MONOLITHIC_OPTIONS}
 | 
				
			||||||
 | 
					            do
 | 
				
			||||||
 | 
					                do_cmd_redir ${MONOLITHIC_OUT} echo "#define ${opt} ${!opt}" || return 1
 | 
				
			||||||
 | 
					            done
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for FILE in ${MONOLITHIC_SOURCE}
 | 
					        for FILE in ${MONOLITHIC_SOURCE}
 | 
				
			||||||
        do
 | 
					        do
 | 
				
			||||||
            if [ ${HASHLINE} -ne 0 ]
 | 
					            if [ ${HASHLINE} -ne 0 ]
 | 
				
			||||||
| 
						 | 
					@ -142,6 +151,10 @@ build_dir_tree() {
 | 
				
			||||||
        return 1
 | 
					        return 1
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    build_dir_tree_recurse "${INSTALL_PREFIX}$1"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build_dir_tree_recurse() {
 | 
				
			||||||
    local DIR="$1"
 | 
					    local DIR="$1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # if the directory already exists, return success
 | 
					    # if the directory already exists, return success
 | 
				
			||||||
| 
						 | 
					@ -160,8 +173,9 @@ build_dir_tree() {
 | 
				
			||||||
    mkdir "${DIR}" >& /dev/null
 | 
					    mkdir "${DIR}" >& /dev/null
 | 
				
			||||||
    if [ $? -ne 0 ]
 | 
					    if [ $? -ne 0 ]
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
        build_dir_tree $(dirname "${DIR}") || return 1
 | 
					        build_dir_tree_recurse $(dirname "${DIR}") || return 1
 | 
				
			||||||
        mkdir "${DIR}"
 | 
						echo " Creating directory '${DIR}'"
 | 
				
			||||||
 | 
					        do_cmd mkdir "${DIR}"
 | 
				
			||||||
        if [ $? -ne 0 ]
 | 
					        if [ $? -ne 0 ]
 | 
				
			||||||
        then
 | 
					        then
 | 
				
			||||||
            print_failure "Failed to create directory '${DIR}'"
 | 
					            print_failure "Failed to create directory '${DIR}'"
 | 
				
			||||||
| 
						 | 
					@ -180,10 +194,10 @@ build_dir_tree() {
 | 
				
			||||||
# second is the destination. The third is the octal mode.
 | 
					# second is the destination. The third is the octal mode.
 | 
				
			||||||
install_file() {
 | 
					install_file() {
 | 
				
			||||||
    # figure out if $2 is a directory or not
 | 
					    # figure out if $2 is a directory or not
 | 
				
			||||||
    DEST_FILE="$2"
 | 
					    DEST_FILE="${INSTALL_PREFIX}$2"
 | 
				
			||||||
    [ -d "$2" ] && DEST_FILE="$2/$(basename $1)"
 | 
					    [ -d "${DEST_FILE}" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    echo " Installing: '$1' -> '$2'"
 | 
					    echo " Installing: '$1' -> '${DEST_FILE}'"
 | 
				
			||||||
    do_cmd cp -fP "$1" "${DEST_FILE}" || return 1
 | 
					    do_cmd cp -fP "$1" "${DEST_FILE}" || return 1
 | 
				
			||||||
    do_cmd chmod "$3" "${DEST_FILE}" || return 1
 | 
					    do_cmd chmod "$3" "${DEST_FILE}" || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -195,10 +209,10 @@ install_file() {
 | 
				
			||||||
# This will install a header file. It is basically similar to 
 | 
					# This will install a header file. It is basically similar to 
 | 
				
			||||||
# install_file(), only we strip out the #line directives.
 | 
					# install_file(), only we strip out the #line directives.
 | 
				
			||||||
install_header() {
 | 
					install_header() {
 | 
				
			||||||
    DEST_FILE="$2"
 | 
					    DEST_FILE="${INSTALL_PREFIX}$2"
 | 
				
			||||||
    [ -d "$2" ] && DEST_FILE="$2/$(basename $1)"
 | 
					    [ -d "${DEST_FILE}" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    echo " Installing header: '$1' -> '$2'"
 | 
					    echo " Installing: '$1' -> '${DEST_FILE}'"
 | 
				
			||||||
    do_cmd rm -f ${DEST_FILE} || exit 1
 | 
					    do_cmd rm -f ${DEST_FILE} || exit 1
 | 
				
			||||||
    do_cmd_redir ${DEST_FILE} sed -e "s,^#line.*,," $1 || exit 1
 | 
					    do_cmd_redir ${DEST_FILE} sed -e "s,^#line.*,," $1 || exit 1
 | 
				
			||||||
    do_cmd chmod "$3" "${DEST_FILE}" || return 1
 | 
					    do_cmd chmod "$3" "${DEST_FILE}" || return 1
 | 
				
			||||||
| 
						 | 
					@ -212,9 +226,9 @@ install_header() {
 | 
				
			||||||
# second the symlink's source filename, and the third is the directory
 | 
					# second the symlink's source filename, and the third is the directory
 | 
				
			||||||
# in which to create the symlink.
 | 
					# in which to create the symlink.
 | 
				
			||||||
install_symlink() {
 | 
					install_symlink() {
 | 
				
			||||||
    echo " Installing symlink: '$3/$2' -> '$1'"
 | 
					    echo " Installing symlink: '${INSTALL_PREFIX}$3/$1' -> '$2'"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ( do_cmd cd $3; ln -sf $2 $1 ) || return 1
 | 
					    ( do_cmd ln -sf $2 ${INSTALL_PREFIX}$3/$1 ) || return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 0
 | 
					    return 0
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,168 +0,0 @@
 | 
				
			||||||
<?xml version = '1.0'?>
 | 
					 | 
				
			||||||
<kdevelop>
 | 
					 | 
				
			||||||
  <general>
 | 
					 | 
				
			||||||
    <author>@AUTHOR@</author>
 | 
					 | 
				
			||||||
    <email>@EMAIL@</email>
 | 
					 | 
				
			||||||
    <version>$VERSION$</version>
 | 
					 | 
				
			||||||
    <projectmanagement>KDevCustomProject</projectmanagement>
 | 
					 | 
				
			||||||
    <primarylanguage>C++</primarylanguage>
 | 
					 | 
				
			||||||
    <ignoreparts/>
 | 
					 | 
				
			||||||
    <projectdirectory>.</projectdirectory>
 | 
					 | 
				
			||||||
    <absoluteprojectpath>false</absoluteprojectpath>
 | 
					 | 
				
			||||||
    <description/>
 | 
					 | 
				
			||||||
    <versioncontrol/>
 | 
					 | 
				
			||||||
  </general>
 | 
					 | 
				
			||||||
  <kdevcustomproject>
 | 
					 | 
				
			||||||
    <run>
 | 
					 | 
				
			||||||
      <mainprogram>/bin/true</mainprogram>
 | 
					 | 
				
			||||||
      <directoryradio>executable</directoryradio>
 | 
					 | 
				
			||||||
      <customdirectory>/</customdirectory>
 | 
					 | 
				
			||||||
      <programargs/>
 | 
					 | 
				
			||||||
      <terminal>false</terminal>
 | 
					 | 
				
			||||||
      <autocompile>true</autocompile>
 | 
					 | 
				
			||||||
      <envvars/>
 | 
					 | 
				
			||||||
    </run>
 | 
					 | 
				
			||||||
    <build>
 | 
					 | 
				
			||||||
      <buildtool>make</buildtool>
 | 
					 | 
				
			||||||
      <builddir/>
 | 
					 | 
				
			||||||
    </build>
 | 
					 | 
				
			||||||
    <make>
 | 
					 | 
				
			||||||
      <abortonerror>false</abortonerror>
 | 
					 | 
				
			||||||
      <numberofjobs>1</numberofjobs>
 | 
					 | 
				
			||||||
      <prio>0</prio>
 | 
					 | 
				
			||||||
      <dontact>false</dontact>
 | 
					 | 
				
			||||||
      <makebin>./make.sh</makebin>
 | 
					 | 
				
			||||||
      <defaulttarget>default</defaulttarget>
 | 
					 | 
				
			||||||
      <makeoptions/>
 | 
					 | 
				
			||||||
      <selectedenvironment>default</selectedenvironment>
 | 
					 | 
				
			||||||
      <environments>
 | 
					 | 
				
			||||||
        <default/>
 | 
					 | 
				
			||||||
      </environments>
 | 
					 | 
				
			||||||
    </make>
 | 
					 | 
				
			||||||
    <general>
 | 
					 | 
				
			||||||
      <activedir/>
 | 
					 | 
				
			||||||
    </general>
 | 
					 | 
				
			||||||
  </kdevcustomproject>
 | 
					 | 
				
			||||||
  <kdevdebugger>
 | 
					 | 
				
			||||||
    <general>
 | 
					 | 
				
			||||||
      <dbgshell/>
 | 
					 | 
				
			||||||
      <programargs/>
 | 
					 | 
				
			||||||
      <gdbpath/>
 | 
					 | 
				
			||||||
      <configGdbScript/>
 | 
					 | 
				
			||||||
      <runShellScript/>
 | 
					 | 
				
			||||||
      <runGdbScript/>
 | 
					 | 
				
			||||||
      <breakonloadinglibs>true</breakonloadinglibs>
 | 
					 | 
				
			||||||
      <separatetty>false</separatetty>
 | 
					 | 
				
			||||||
      <floatingtoolbar>false</floatingtoolbar>
 | 
					 | 
				
			||||||
    </general>
 | 
					 | 
				
			||||||
    <display>
 | 
					 | 
				
			||||||
      <staticmembers>false</staticmembers>
 | 
					 | 
				
			||||||
      <demanglenames>true</demanglenames>
 | 
					 | 
				
			||||||
      <outputradix>10</outputradix>
 | 
					 | 
				
			||||||
    </display>
 | 
					 | 
				
			||||||
  </kdevdebugger>
 | 
					 | 
				
			||||||
  <kdevdoctreeview>
 | 
					 | 
				
			||||||
    <ignoretocs>
 | 
					 | 
				
			||||||
      <toc>ada</toc>
 | 
					 | 
				
			||||||
      <toc>ada_bugs_gcc</toc>
 | 
					 | 
				
			||||||
      <toc>bash</toc>
 | 
					 | 
				
			||||||
      <toc>bash_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>clanlib</toc>
 | 
					 | 
				
			||||||
      <toc>fortran_bugs_gcc</toc>
 | 
					 | 
				
			||||||
      <toc>gnome1</toc>
 | 
					 | 
				
			||||||
      <toc>gnustep</toc>
 | 
					 | 
				
			||||||
      <toc>gtk</toc>
 | 
					 | 
				
			||||||
      <toc>gtk_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>haskell</toc>
 | 
					 | 
				
			||||||
      <toc>haskell_bugs_ghc</toc>
 | 
					 | 
				
			||||||
      <toc>java_bugs_gcc</toc>
 | 
					 | 
				
			||||||
      <toc>java_bugs_sun</toc>
 | 
					 | 
				
			||||||
      <toc>kde2book</toc>
 | 
					 | 
				
			||||||
      <toc>opengl</toc>
 | 
					 | 
				
			||||||
      <toc>pascal_bugs_fp</toc>
 | 
					 | 
				
			||||||
      <toc>php</toc>
 | 
					 | 
				
			||||||
      <toc>php_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>perl</toc>
 | 
					 | 
				
			||||||
      <toc>perl_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>python</toc>
 | 
					 | 
				
			||||||
      <toc>python_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>qt-kdev3</toc>
 | 
					 | 
				
			||||||
      <toc>ruby</toc>
 | 
					 | 
				
			||||||
      <toc>ruby_bugs</toc>
 | 
					 | 
				
			||||||
      <toc>sdl</toc>
 | 
					 | 
				
			||||||
      <toc>sw</toc>
 | 
					 | 
				
			||||||
      <toc>w3c-dom-level2-html</toc>
 | 
					 | 
				
			||||||
      <toc>w3c-svg</toc>
 | 
					 | 
				
			||||||
      <toc>w3c-uaag10</toc>
 | 
					 | 
				
			||||||
      <toc>wxwidgets_bugs</toc>
 | 
					 | 
				
			||||||
    </ignoretocs>
 | 
					 | 
				
			||||||
    <ignoreqt_xml>
 | 
					 | 
				
			||||||
      <toc>Guide to the Qt Translation Tools</toc>
 | 
					 | 
				
			||||||
      <toc>Qt Assistant Manual</toc>
 | 
					 | 
				
			||||||
      <toc>Qt Designer Manual</toc>
 | 
					 | 
				
			||||||
      <toc>Qt Reference Documentation</toc>
 | 
					 | 
				
			||||||
      <toc>qmake User Guide</toc>
 | 
					 | 
				
			||||||
    </ignoreqt_xml>
 | 
					 | 
				
			||||||
    <ignoredoxygen>
 | 
					 | 
				
			||||||
      <toc>KDE Libraries (Doxygen)</toc>
 | 
					 | 
				
			||||||
    </ignoredoxygen>
 | 
					 | 
				
			||||||
  </kdevdoctreeview>
 | 
					 | 
				
			||||||
  <kdevfilecreate>
 | 
					 | 
				
			||||||
    <filetypes/>
 | 
					 | 
				
			||||||
    <useglobaltypes>
 | 
					 | 
				
			||||||
      <type ext="cpp" />
 | 
					 | 
				
			||||||
      <type ext="h" />
 | 
					 | 
				
			||||||
    </useglobaltypes>
 | 
					 | 
				
			||||||
  </kdevfilecreate>
 | 
					 | 
				
			||||||
  <cppsupportpart>
 | 
					 | 
				
			||||||
    <filetemplates>
 | 
					 | 
				
			||||||
      <interfacesuffix>.h</interfacesuffix>
 | 
					 | 
				
			||||||
      <implementationsuffix>.cpp</implementationsuffix>
 | 
					 | 
				
			||||||
    </filetemplates>
 | 
					 | 
				
			||||||
  </cppsupportpart>
 | 
					 | 
				
			||||||
  <kdevcppsupport>
 | 
					 | 
				
			||||||
    <codecompletion>
 | 
					 | 
				
			||||||
      <includeGlobalFunctions>true</includeGlobalFunctions>
 | 
					 | 
				
			||||||
      <includeTypes>true</includeTypes>
 | 
					 | 
				
			||||||
      <includeEnums>true</includeEnums>
 | 
					 | 
				
			||||||
      <includeTypedefs>false</includeTypedefs>
 | 
					 | 
				
			||||||
      <automaticCodeCompletion>true</automaticCodeCompletion>
 | 
					 | 
				
			||||||
      <automaticArgumentsHint>true</automaticArgumentsHint>
 | 
					 | 
				
			||||||
      <automaticHeaderCompletion>true</automaticHeaderCompletion>
 | 
					 | 
				
			||||||
      <codeCompletionDelay>1</codeCompletionDelay>
 | 
					 | 
				
			||||||
      <argumentsHintDelay>1</argumentsHintDelay>
 | 
					 | 
				
			||||||
      <headerCompletionDelay>250</headerCompletionDelay>
 | 
					 | 
				
			||||||
    </codecompletion>
 | 
					 | 
				
			||||||
    <creategettersetter>
 | 
					 | 
				
			||||||
      <prefixGet/>
 | 
					 | 
				
			||||||
      <prefixSet>set</prefixSet>
 | 
					 | 
				
			||||||
      <prefixVariable>m_,_</prefixVariable>
 | 
					 | 
				
			||||||
      <parameterName>theValue</parameterName>
 | 
					 | 
				
			||||||
      <inlineGet>true</inlineGet>
 | 
					 | 
				
			||||||
      <inlineSet>true</inlineSet>
 | 
					 | 
				
			||||||
    </creategettersetter>
 | 
					 | 
				
			||||||
    <references/>
 | 
					 | 
				
			||||||
  </kdevcppsupport>
 | 
					 | 
				
			||||||
  <kdevdocumentation>
 | 
					 | 
				
			||||||
    <projectdoc>
 | 
					 | 
				
			||||||
      <docsystem/>
 | 
					 | 
				
			||||||
      <docurl/>
 | 
					 | 
				
			||||||
      <usermanualurl/>
 | 
					 | 
				
			||||||
    </projectdoc>
 | 
					 | 
				
			||||||
  </kdevdocumentation>
 | 
					 | 
				
			||||||
  <kdevfileview>
 | 
					 | 
				
			||||||
    <groups>
 | 
					 | 
				
			||||||
      <hidenonprojectfiles>false</hidenonprojectfiles>
 | 
					 | 
				
			||||||
      <hidenonlocation>false</hidenonlocation>
 | 
					 | 
				
			||||||
    </groups>
 | 
					 | 
				
			||||||
    <tree>
 | 
					 | 
				
			||||||
      <hidepatterns>*.o,*.lo,CVS</hidepatterns>
 | 
					 | 
				
			||||||
      <hidenonprojectfiles>false</hidenonprojectfiles>
 | 
					 | 
				
			||||||
      <showvcsfields>false</showvcsfields>
 | 
					 | 
				
			||||||
    </tree>
 | 
					 | 
				
			||||||
  </kdevfileview>
 | 
					 | 
				
			||||||
  <ctagspart>
 | 
					 | 
				
			||||||
    <customArguments/>
 | 
					 | 
				
			||||||
    <customTagfilePath/>
 | 
					 | 
				
			||||||
  </ctagspart>
 | 
					 | 
				
			||||||
</kdevelop>
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,4 +0,0 @@
 | 
				
			||||||
# KDevelop Custom Project File List
 | 
					 | 
				
			||||||
src/lib/BottomHeader.h
 | 
					 | 
				
			||||||
src/lib/TopHeader.h
 | 
					 | 
				
			||||||
src/lib/TopSource.cpp
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,18 @@
 | 
				
			||||||
build.app.c
 | 
					build.app.c
 | 
				
			||||||
build.app.c++
 | 
					build.app.c++
 | 
				
			||||||
build.app.c++-qt
 | 
					build.app.c++-qt
 | 
				
			||||||
 | 
					build.app.sh
 | 
				
			||||||
build.docs.doxygen
 | 
					build.docs.doxygen
 | 
				
			||||||
build.files.none
 | 
					build.files.none
 | 
				
			||||||
build.firmware.gpasm
 | 
					build.firmware.gpasm
 | 
				
			||||||
build.firmware.sdcc
 | 
					build.firmware.sdcc
 | 
				
			||||||
build.lib.c
 | 
					build.lib.c
 | 
				
			||||||
build.lib.c++
 | 
					build.lib.c++
 | 
				
			||||||
 | 
					build.module.c
 | 
				
			||||||
build.tests.c
 | 
					build.tests.c
 | 
				
			||||||
build.tests.c++
 | 
					build.tests.c++
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					config-printflags.sh
 | 
				
			||||||
module-create.sh
 | 
					module-create.sh
 | 
				
			||||||
release.sh
 | 
					release.sh
 | 
				
			||||||
 | 
					version.sh
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# @P@/version
 | 
					# @P@/version
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#  (c)2006, @AUTHOR@, <@EMAIL@>.
 | 
					#  (c)2007, @AUTHOR@, <@EMAIL@>.
 | 
				
			||||||
#  Released under the GNU GPLv2. See file COPYING or
 | 
					#  Released under the GNU GPLv2. See file COPYING or
 | 
				
			||||||
#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
					#  http://www.gnu.org/copyleft/gpl.html for details.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,6 @@
 | 
				
			||||||
VERMAJOR=0
 | 
					VERMAJOR=0
 | 
				
			||||||
VERMINOR=0
 | 
					VERMINOR=0
 | 
				
			||||||
VERMICRO=0
 | 
					VERMICRO=0
 | 
				
			||||||
VEREXTRA=""
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# kate: @KATE_MODELINE@
 | 
					# kate: @KATE_MODELINE@
 | 
				
			||||||
# vim: @VIM_MODELINE@
 | 
					# vim: @VIM_MODELINE@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -57,10 +57,6 @@ cleanup() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
do_cmd mkdir upgrade.tmp || cleanup
 | 
					do_cmd mkdir upgrade.tmp || cleanup
 | 
				
			||||||
echo "DEBUG START"
 | 
					 | 
				
			||||||
ls
 | 
					 | 
				
			||||||
ls upgrade.tmp
 | 
					 | 
				
			||||||
echo "DEBUG END"
 | 
					 | 
				
			||||||
do_cmd_redir /dev/null ${SCRIPT_ROOT}/create.sh ${PROJECT_ROOT}/upgrade.tmp ${P} || cleanup
 | 
					do_cmd_redir /dev/null ${SCRIPT_ROOT}/create.sh ${PROJECT_ROOT}/upgrade.tmp ${P} || cleanup
 | 
				
			||||||
for module in src/*
 | 
					for module in src/*
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue