summaryrefslogtreecommitdiff
path: root/macros/cleanmacros.sce
blob: 56d02401a71b279371b409a5ed9f0cc689e7153f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ====================================================================
// This file is released under the 3-clause BSD license. See COPYING-BSD.
// ====================================================================
function cleanmacros()

    libpath = get_absolute_file_path("cleanmacros.sce");

    binfiles = ls(libpath+"/*.bin");
    for i = 1:size(binfiles,"*")
        mdelete(binfiles(i));
    end

    mdelete(libpath+"/names");
    mdelete(libpath+"/lib");
endfunction

cleanmacros();
clear cleanmacros; // remove cleanmacros on stack

// ====================================================================