Changeset 3436 for trunk/tools


Ignore:
Timestamp:
Apr 22, 2000, 12:39:32 AM (26 years ago)
Author:
bird
Message:

Corrected -I option.
Corrected the make command - object files are supposted to be in the base
directory not in a hardcoded "object" directory.

Location:
trunk/tools/vslick
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslick

    • Property svn:ignore set to
      *.ex
  • trunk/tools/vslick/genproject.cmd

    r2505 r3436  
    1 /* $Id: genproject.cmd,v 1.1 2000-01-23 03:33:08 bird Exp $
     1/* $Id: genproject.cmd,v 1.2 2000-04-21 22:39:32 bird Exp $
    22 *
    33 * This script generates a Visual Slick project of the source and include
     
    1414    parse arg sArg
    1515
    16     sIncludes.0 = 0;
     16    sIncludes = '';
    1717    sProjFile = '';
    1818
     
    4949        if substr(sArg, 1, 1) == '-' | substr(sArg, 1, 1) == '/' then do
    5050            /* option */
    51             sArg = substr(sArg, 2);
    52             chArg = substr(sArg, 1, 1);
     51            chArg = substr(sArg, 2, 1);
     52            sArg  = substr(sArg, 3);
    5353            select
    5454                when chArg = 'I' | chArg = 'i' then do
    55 
     55                    sIncludes = sIncludes||sArg;
    5656                end
    5757
     
    6161
    6262                otherwise  do
    63                     say 'illegal option: 'sArg
     63                    say 'illegal option: 'chArg||sArg
    6464                    call syntax;
    6565                end
     
    7777
    7878    say 'Will now generate :' sProjFile
    79     sInclude='';
    80     do i = 1 to sIncludes.0
    81         if i = 1 then
    82             say 'Includes specified:' sIncludes.i
    83         else
    84             say '                   ' sIncludes.i
    85         sInclude=sInclude||sIncludes.i||';'
    86     end
     79    say 'Includes specified:' sIncludes
    8780
    8881    /* delete old target files */
     
    9689        call lineout sProjFile, 'MACRO=odin32_maketagfile();\n'
    9790        call lineout sProjFile, 'FILTEREXPANSION=1 1 0 0 1'
    98         call lineout sProjFile, 'compile=concur|capture|clear|:Compile:&Compile,nmake object\%n.obj'
     91        call lineout sProjFile, 'compile=concur|capture|clear|:Compile:&Compile,nmake %n.obj'
    9992        call lineout sProjFile, 'make=concur|capture|clear|:Build:&Build,nmake'
    10093        call lineout sProjFile, 'rebuild=concur|capture|clear|:Rebuild:&Rebuild,nmake /A'
     
    10699        call lineout sProjFile, 'workingdir='directory()
    107100        /* TODO */
    108         call lineout sProjFile, 'includedirs='||sInclude||'%(INCLUDE)'
     101        call lineout sProjFile, 'includedirs='||sIncludes||'%(INCLUDE)'
    109102        call lineout sProjFile, 'tagfiles='
    110103        call lineout sProjFile, 'reffile='
     
    198191    sDir = substr(sDir, i);
    199192
    200     sExcludeDir = 'CVS;';
     193    sExcludeDir = 'CVS;old;new;object;list;bin;obj;';
    201194
    202195    /* look for sExt in sIncludeExt */
Note: See TracChangeset for help on using the changeset viewer.