Codebase list stealth / debian/1.47.2-1 build
debian/1.47.2-1

Tree @debian/1.47.2-1 (Download .tar.gz)

build @debian/1.47.2-1raw · history · blame

#!/usr/bin/icmake -qt/tmp/stealth.ib

#include "INSTALL.im"

#include "icmake/run"
#include "icmake/md"
#include "icmake/getenv"
#include "icmake/clean"
#include "icmake/special"
#include "icmake/manpage"
#include "icmake/manual"
#include "icmake/program"
#include "icmake/install"

void main(int argc, list argv, list envp)
{
    string option;

    g_env = envp;

    setLocations();     // from INSTALL.im

    my_getenv("DRYRUN");
    g_dryrun = g_envvar;

    option = element(1, argv);

    if (option == "clean")
        clean(0);

    if (option == "distclean")
        clean(1);

    if (option == "install")
        install(element(2, argv));

    if (option == "man")
        manpage();

    if (option == "manual")
        exit(0);

    if (option == "manual-tmp")
        manual();

    if (option == "program")
    {
        if (element(2, argv) == "strip")
            g_strip = "-s";
        program();
    }

    printf("Usage: build what\n"
        "Where `what' is one of:\n"
        "   clean           - clean up remnants of previous compilations\n"
        "   distclean       - clean + fully remove tmp/\n"
        "   man             - build the man-page (requires Yodl)\n"
        "   manual          - DO NOTHING (temporarily)\n"
        "   manual-tmp      - build the manual (requires Yodl)\n"
        "   program [strip] - build stealth (optionally strip the "
                                                            "executable)\n"
        "   install <base>  - to install the software in the locations\n"
        "                     defined in the INSTALL.im file, optionally\n"
        "                     below <base>\n"
        "If the environment variable DRYRUN is defined, no commands are\n"
        "actually executed\n"
    );
    exit(1);
}