mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
6881bc3814
Annotations. The branches and tags directory are empty, since I couldn't svnadmin import a repostitory dump. Many earlier versions exist, though, and if you want the full archive, just let me know and I'll send you the svnadmin dump of my full C++ Annotations archive. Frank B. Brokken <f.b.brokken@rug.nl> git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@3 f6dd340e-d3f9-0310-b409-bdd246841980
62 lines
1.4 KiB
Text
Executable file
62 lines
1.4 KiB
Text
Executable file
#!/usr/bin/icmake -qt/tmp/cppannotations
|
|
|
|
#include "INSTALL.im"
|
|
|
|
#define ECHO_COMMANDS 1
|
|
#define COPT "-Wall -O2 -g"
|
|
|
|
string
|
|
g_cwd; // current WD
|
|
|
|
#include "icmake/run"
|
|
#include "icmake/clean"
|
|
#include "icmake/programs"
|
|
#include "icmake/man"
|
|
#include "icmake/docs"
|
|
#include "icmake/install"
|
|
|
|
void main(int argc, list argv, list envp)
|
|
{
|
|
string option;
|
|
|
|
echo(ECHO_COMMANDS);
|
|
|
|
option = element(1, argv);
|
|
g_cwd = chdir(".");
|
|
|
|
setLocations(); // from INSTALL.im
|
|
|
|
if (option == "clean")
|
|
clean();
|
|
|
|
if (option == "programs")
|
|
{
|
|
programs();
|
|
exit(0);
|
|
}
|
|
|
|
if (option == "docs")
|
|
docs();
|
|
|
|
if (option == "man")
|
|
{
|
|
man();
|
|
exit(0);
|
|
}
|
|
|
|
if (option == "install")
|
|
install(element(2, argv));
|
|
|
|
printf("Usage: build what\n"
|
|
"Where `what' is one of:\n"
|
|
" clean - clean up remnants of previous compilations\n"
|
|
" docs - construct the C++ Annotations\n"
|
|
" install <base> - to install the software in the locations\n"
|
|
" defined in the INSTALL.im file, optionally\n"
|
|
" below <base>\n"
|
|
" man - build the manual page (requires Yodl)\n"
|
|
" programs - build support programs\n"
|
|
"\n"
|
|
);
|
|
exit(1);
|
|
}
|