Merge branch 'master' of chrysocolla.lwithers.me.uk:git/lw-build-system

This commit is contained in:
Laurence Withers 2007-08-14 20:52:35 +00:00
commit 9e3137d0a8
66 changed files with 88 additions and 82 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# #
# (c)2006, Laurence Withers. Released under the GNU GPL. See file # (c)2006, Laurence Withers. Released under the GNU GPL. See file
# COPYING for details. # COPYING for details.
@ -13,14 +13,23 @@
# Sanity checks # Sanity checks
if [ $# -ne 2 ] case "$#" in
then 1)
DEST_DIR="$(pwd)"
P="$1"
;;
2)
DEST_DIR="$1"
P="$2"
;;
**)
echo "Creates a new project using lw-build-system." echo "Creates a new project using lw-build-system."
echo "Usage: $0 path/to/projects @P@" echo "Usage: $0 [path/to/projects] @P@"
echo " path/to/projects directory in which project subdir will be created" echo " path/to/projects directory in which project subdir will be created"
echo " @P@ package name" echo " @P@ package name"
exit 1 exit 1
fi ;;
esac
cd "$(dirname $0)" cd "$(dirname $0)"
TEMPLATE="$(pwd)/skel" TEMPLATE="$(pwd)/skel"
@ -29,17 +38,14 @@ DEVSCRIPTS="$(pwd)/scripts"
# Get arguments, include standard functions # Get arguments, include standard functions
source ${TEMPLATE}/scripts/functions.sh || exit 1 source "${TEMPLATE}/scripts/functions.sh" || exit 1
DEST_DIR="$1"; shift
P="$1"; shift
DEST_DIR="${DEST_DIR}/${P}" DEST_DIR="${DEST_DIR}/${P}"
# Ensure that we have our .lwbuildrc set up correctly. # Ensure that we have our .lwbuildrc set up correctly.
LWBUILDRC=~/.lwbuildrc LWBUILDRC="${HOME}/.lwbuildrc"
if [ ! -e ${LWBUILDRC} ] if [ ! -e "${LWBUILDRC}" ]
then then
echo "You don't have a ${LWBUILDRC}, so I'll create a blank one for you." echo "You don't have a ${LWBUILDRC}, so I'll create a blank one for you."
do_cmd cp skel-.lwbuildrc ${LWBUILDRC} do_cmd cp skel-.lwbuildrc ${LWBUILDRC}

View File

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

View File

@ -9,4 +9,4 @@ install_file "${@CNAME@}" "${BINDIR}" 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -8,7 +8,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
PREMOC="${SRC}.premoc.cpp" PREMOC="${SRC}.premoc.cpp"
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.cpp)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.cpp)"
make_monolithic ${PREMOC} C || return 1 make_monolithic ${PREMOC} C || return 1
if [ "${PREMOC}" -nt "${SRC}" ] if [ "${PREMOC}" -nt "${SRC}" ]
@ -24,4 +24,4 @@ then
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -12,4 +12,4 @@ add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

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

View File

@ -9,4 +9,4 @@ install_file "${@CNAME@}" "${BINDIR}" 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.cpp)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.cpp)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
@ -15,4 +15,4 @@ then
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -11,4 +11,4 @@ add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.c /* @P@/src/@NAME@/000_TopSource.c
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

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

View File

@ -9,4 +9,4 @@ install_file "${@CNAME@}" "${BINDIR}" 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.c)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
@ -15,4 +15,4 @@ then
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -11,4 +11,4 @@ add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

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

View File

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

View File

@ -46,7 +46,7 @@ CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = NO SHOW_INCLUDE_FILES = NO
INLINE_INFO = YES INLINE_INFO = YES
SORT_MEMBER_DOCS = YES SORT_MEMBER_DOCS = NO
SORT_BRIEF_DOCS = NO SORT_BRIEF_DOCS = NO
SORT_BY_SCOPE_NAME = NO SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES GENERATE_TODOLIST = YES

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,4 +9,4 @@ install_file "${@CNAME@}" "${HEXDIR}" 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.firmware src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/{TopSource,BottomSource}.asm)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.asm)"
make_monolithic ${SRC} none || return 1 make_monolithic ${SRC} none || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
@ -15,4 +15,4 @@ then
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.c /* @P@/src/@NAME@/000_TopSource.c
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

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

View File

@ -9,4 +9,4 @@ install_file "${@CNAME@}" "${HEXDIR}" 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.firmware src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.c)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
@ -15,4 +15,4 @@ then
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopHeader.h /* @P@/src/@NAME@/000_TopHeader.h
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/BottomHeader.h /* @P@/src/@NAME@/999_BottomHeader.h
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

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

View File

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

View File

@ -8,14 +8,14 @@ MONOLITHIC_TESTS="src/@NAME@/build.lib src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/{TopHeader,BottomHeader}.h)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.h)"
make_monolithic ${HDR} Ch || return 1 make_monolithic ${HDR} Ch || return 1
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.cpp)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.cpp)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}" MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

@ -28,4 +28,4 @@ add_config_option "FINALINCLUDEDIR" "${COPT_FINALINCLUDEDIR_DEFAULT}"
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopHeader.h /* @P@/src/@NAME@/000_TopHeader.h
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.c /* @P@/src/@NAME@/000_TopSource.c
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/BottomHeader.h /* @P@/src/@NAME@/999_BottomHeader.h
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

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

View File

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

View File

@ -8,14 +8,14 @@ MONOLITHIC_TESTS="src/@NAME@/build.lib src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/{TopHeader,BottomHeader}.h)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.h)"
make_monolithic ${HDR} Ch || return 1 make_monolithic ${HDR} Ch || return 1
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.c)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}" MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

@ -28,4 +28,4 @@ add_config_option "FINALINCLUDEDIR" "${COPT_FINALINCLUDEDIR_DEFAULT}"
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.c /* @P@/src/@NAME@/000_TopSource.c
* *
* (c)2007, @AUTHOR@, <@EMAIL@>. * (c)2007, @AUTHOR@, <@EMAIL@>.
* Released under the GNU GPLv2. See file COPYING or * Released under the GNU GPLv2. See file COPYING or

View File

@ -9,4 +9,4 @@ install_file ${@CNAME@} ${MODULEDIR} 0755 || return 1
print_success "Done" print_success "Done"
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

@ -8,10 +8,10 @@ MONOLITHIC_TESTS="src/@NAME@/build.module src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)" MONOLITHIC_SOURCE="$(echo src/@NAME@/*.c)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1
fi fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
for pkg in $@ for pkg in $@
do do
varname="$(echo "${pkg}" | tr a-z A-Z)" varname="$(echo "${pkg}" | tr 'a-z-+' 'A-Z__')"
echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"' echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"'
echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --libs)"' echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --libs)"'
done done

View File

@ -127,4 +127,4 @@ grep -r "@TODO@" .
true true
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: expandtab:ts=4:sw=4 # vim: syntax=sh:expandtab:ts=4:sw=4

View File

@ -89,4 +89,4 @@ fi
rm -rf "${PKGNAME}" "${PKGNAME}-doc" rm -rf "${PKGNAME}" "${PKGNAME}-doc"
# kate: replace-trailing-space-save true; space-indent true; tab-width 4; # kate: replace-trailing-space-save true; space-indent true; tab-width 4;
# vim: ts=4:sw=4:expandtab # vim: syntax=sh:ts=4:sw=4:expandtab