WIP on module instantiation.
Rather than the skeleton dir shipping with a couple of ready-made modules, one for each type of project, it would make much more sense and be much more flexible to instead provide a script to instantiate modules as needed.
This commit is contained in:
parent
31c4a78918
commit
9e8d1e4c15
46 changed files with 949 additions and 0 deletions
42
skel/scripts/build.c.tests/template
Normal file
42
skel/scripts/build.c.tests/template
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/* @P@/src/tests/???.cpp
|
||||
*
|
||||
* (c)2006, Laurence Withers. Released under the GNU GPL. See file
|
||||
* COPYING for more information / terms of license.
|
||||
*/
|
||||
|
||||
#include "@HEADER_NAME@"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if(argc == 2 && !strcmp(argv[1], "--print-summary")) {
|
||||
std::cout << "One line summary.\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(argc == 1) {
|
||||
// empty argument list
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
try {
|
||||
// TODO
|
||||
}
|
||||
catch(std::exception& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
ret = 1;
|
||||
}
|
||||
catch(...) {
|
||||
std::cerr << "Unknown exception caught." << std::endl;
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* options for text editors
|
||||
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue