Changeset 4361 for trunk/tools


Ignore:
Timestamp:
Oct 2, 2000, 6:08:49 AM (25 years ago)
Author:
bird
Message:

Generates relative projects.
Changes directory to the same directory as the project file during project
loading.

Location:
trunk/tools/vslick
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslick/genproject.cmd

    r3574 r4361  
    1 /* $Id: genproject.cmd,v 1.3 2000-05-19 21:22:49 bird Exp $
     1/* $Id: genproject.cmd,v 1.4 2000-10-02 04:08:49 bird Exp $
    22 *
    33 * This script generates a Visual Slick project of the source and include
     
    8787    if (stream(sProjFile, 'c', 'open write' ) <> '') then do
    8888        call lineout sProjFile, '[COMPILER]'
    89         call lineout sProjFile, 'MACRO=odin32_maketagfile();\n odin32_setcurrentdir();\n'
     89        call lineout sProjFile, 'MACRO=odin32_setcurrentdir();\nodin32_maketagfile();\n'
    9090        call lineout sProjFile, 'FILTEREXPANSION=1 1 0 0 1'
    9191        call lineout sProjFile, 'compile=concur|capture|clear|:Compile:&Compile,nmake %n.obj'
     
    104104
    105105        call lineout sProjFile, '[FILES]'
    106         call processDirTree sProjFile, directory();
     106        call processDirTree sProjFile, directory(), directory();
    107107        call lineout sProjFile, '[ASSOCIATION]'
    108108        call lineout sProjFile, '[STATE]'
     
    136136/* processes an directory tree */
    137137processDirTree: procedure
    138     parse arg sProjFile, sDirectory
     138    parse arg sProjFile, sDirectory, sRoot
    139139
    140140    rc = SysFileTree(sDirectory'\*', sFiles, 'FO');
     
    142142        do i = 1 to sFiles.0
    143143            if filterFile(sFiles.i) then
    144                 call lineout sProjFile, sFiles.i
     144                call lineout sProjFile, substr(sFiles.i, length(sRoot)+2)
    145145        end
    146146    end
     
    150150        do i = 1 to sDirs.0
    151151            if filterDirectory(sDirs.i) then
    152                 call processDirTree sProjFile, sDirs.i
     152                call processDirTree sProjFile, sDirs.i, sRoot
    153153        end
    154154    end
     
    163163
    164164    if lastpos('\', sFile) < lastpos('.', sFile) then do
    165         sIncludeExt = 'c;cpp;h;hpp;inc;asm;rc;mak;cmd;mk;def;txt;'
     165        sIncludeExt = 'c;cpp;h;hpp;inc;asm;rc;mak;cmd;mk;def;txt;orc;dlg;doc;ipf;'
    166166        sExt = substr(sFile, lastpos('.', sFile)+1);
    167167
  • trunk/tools/vslick/odin32.e

    r3878 r4361  
    1 /* $Id: odin32.e,v 1.5 2000-07-21 14:56:24 bird Exp $
     1/* $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $
    22 *
    33 * Visual SlickEdit Documentation Macros.
     
    4949
    5050/* Remeber to change these! */
    51 _str sOdin32UserInitials = "kso";
    52 _str sOdin32UserName     = "knut st. osmundsen";
    53 _str sOdin32UserEmail    = "knut.stange.osmundsen@pmsc.no";
     51static _str sOdin32UserInitials = "kso";
     52static _str sOdin32UserName     = "knut st. osmundsen";
     53static _str sOdin32UserEmail    = "knut.stange.osmundsen@mynd.no";
    5454
    5555
     
    202202        _insert_text(";;\n");
    203203        _insert_text("; \n");
    204         _insert_text("; @cproto    \n");
    205         _insert_text("; @returns   \n");
    206         _insert_text("; @param     \n");
    207         _insert_text("; @uses      \n");
    208         _insert_text("; @equiv     \n");
    209         _insert_text("; @time      \n");
    210         _insert_text("; @sketch    \n");
    211         _insert_text("; @status    \n");
    212         _insert_text("; @author    "sOdin32UserName" (" sOdin32UserEmail ")\n");
    213         _insert_text("; @remark    \n");
     204        _insert_text("; @cproto   \n");
     205        _insert_text("; @returns  \n");
     206        _insert_text("; @param    \n");
     207        _insert_text("; @uses     \n");
     208        _insert_text("; @equiv    \n");
     209        _insert_text("; @time     \n");
     210        _insert_text("; @sketch   \n");
     211        _insert_text("; @status   \n");
     212        _insert_text("; @author   "sOdin32UserName" (" sOdin32UserEmail ")\n");
     213        _insert_text("; @remark   \n");
    214214        up(11);
    215215        p_col = 3;
     
    219219        _insert_text("/**\n");
    220220        _insert_text(" * \n");
    221         _insert_text(" * @returns   \n");
    222         _insert_text(" * @param     \n");
    223         _insert_text(" * @equiv     \n");
    224         _insert_text(" * @time      \n");
    225         _insert_text(" * @sketch    \n");
    226         _insert_text(" * @status    \n");
    227         _insert_text(" * @author    "sOdin32UserName" (" sOdin32UserEmail ")\n");
    228         _insert_text(" * @remark    \n");
     221        _insert_text(" * @returns \n");
     222        _insert_text(" * @param   \n");
     223        _insert_text(" * @equiv   \n");
     224        _insert_text(" * @time    \n");
     225        _insert_text(" * @sketch  \n");
     226        _insert_text(" * @status  \n");
     227        _insert_text(" * @author  "sOdin32UserName" (" sOdin32UserEmail ")\n");
     228        _insert_text(" * @remark  \n");
    229229        _insert_text(" */\n");
    230230        up(10);
    231231        p_col = 4;
    232232    }
    233 
    234233}
    235234
     
    304303    if (file_eq(p_extension, 'asm'))
    305304    {
    306         _insert_text("; $Id: odin32.e,v 1.5 2000-07-21 14:56:24 bird Exp $\n");
     305        _insert_text("; $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $\n");
    307306        _insert_text("; \n");
    308307        _insert_text("; \n");
     
    317316    else
    318317    {
    319         _insert_text("/* $Id: odin32.e,v 1.5 2000-07-21 14:56:24 bird Exp $\n");
     318        _insert_text("/* $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $\n");
    320319        _insert_text(" * \n");
    321320        _insert_text(" * \n");
     
    334333_command void odin32_maketagfile()
    335334{
     335    /* We'll */
    336336    if (file_match('-p 'maybe_quote_filename(strip_filename(_project_name,'e'):+TAG_FILE_EXT),1)=="")
    337337        _project_update_files_retag(true,false,false,true);
     338    else
     339        _project_update_files_retag(false,false,false,false);
    338340}
    339341
    340342_command void odin32_setcurrentdir()
    341343{
    342     _ini_get_value(_project_name,"COMPILER","WORKINGDIR", workingdir);
    343     cd(workingdir);
    344 }
     344    //_ini_get_value(_project_name,"COMPILER","WORKINGDIR", workingdir);
     345    //cd(workingdir);
     346    /* Go the the directory containing the project filename */
     347    cd(strip_filename(_project_name, 'NE'));
     348}
     349
Note: See TracChangeset for help on using the changeset viewer.