Changeset 4361 for trunk/tools
- Timestamp:
- Oct 2, 2000, 6:08:49 AM (25 years ago)
- 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 $ 2 2 * 3 3 * This script generates a Visual Slick project of the source and include … … 87 87 if (stream(sProjFile, 'c', 'open write' ) <> '') then do 88 88 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' 90 90 call lineout sProjFile, 'FILTEREXPANSION=1 1 0 0 1' 91 91 call lineout sProjFile, 'compile=concur|capture|clear|:Compile:&Compile,nmake %n.obj' … … 104 104 105 105 call lineout sProjFile, '[FILES]' 106 call processDirTree sProjFile, directory() ;106 call processDirTree sProjFile, directory(), directory(); 107 107 call lineout sProjFile, '[ASSOCIATION]' 108 108 call lineout sProjFile, '[STATE]' … … 136 136 /* processes an directory tree */ 137 137 processDirTree: procedure 138 parse arg sProjFile, sDirectory 138 parse arg sProjFile, sDirectory, sRoot 139 139 140 140 rc = SysFileTree(sDirectory'\*', sFiles, 'FO'); … … 142 142 do i = 1 to sFiles.0 143 143 if filterFile(sFiles.i) then 144 call lineout sProjFile, s Files.i144 call lineout sProjFile, substr(sFiles.i, length(sRoot)+2) 145 145 end 146 146 end … … 150 150 do i = 1 to sDirs.0 151 151 if filterDirectory(sDirs.i) then 152 call processDirTree sProjFile, sDirs.i 152 call processDirTree sProjFile, sDirs.i, sRoot 153 153 end 154 154 end … … 163 163 164 164 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;' 166 166 sExt = substr(sFile, lastpos('.', sFile)+1); 167 167 -
trunk/tools/vslick/odin32.e
r3878 r4361 1 /* $Id: odin32.e,v 1. 5 2000-07-21 14:56:24bird Exp $1 /* $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $ 2 2 * 3 3 * Visual SlickEdit Documentation Macros. … … 49 49 50 50 /* Remeber to change these! */ 51 _str sOdin32UserInitials = "kso";52 _str sOdin32UserName = "knut st. osmundsen";53 _str sOdin32UserEmail = "knut.stange.osmundsen@pmsc.no";51 static _str sOdin32UserInitials = "kso"; 52 static _str sOdin32UserName = "knut st. osmundsen"; 53 static _str sOdin32UserEmail = "knut.stange.osmundsen@mynd.no"; 54 54 55 55 … … 202 202 _insert_text(";;\n"); 203 203 _insert_text("; \n"); 204 _insert_text("; @cproto 205 _insert_text("; @returns 206 _insert_text("; @param 207 _insert_text("; @uses 208 _insert_text("; @equiv 209 _insert_text("; @time 210 _insert_text("; @sketch 211 _insert_text("; @status 212 _insert_text("; @author 213 _insert_text("; @remark 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"); 214 214 up(11); 215 215 p_col = 3; … … 219 219 _insert_text("/**\n"); 220 220 _insert_text(" * \n"); 221 _insert_text(" * @returns 222 _insert_text(" * @param 223 _insert_text(" * @equiv 224 _insert_text(" * @time 225 _insert_text(" * @sketch 226 _insert_text(" * @status 227 _insert_text(" * @author 228 _insert_text(" * @remark 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"); 229 229 _insert_text(" */\n"); 230 230 up(10); 231 231 p_col = 4; 232 232 } 233 234 233 } 235 234 … … 304 303 if (file_eq(p_extension, 'asm')) 305 304 { 306 _insert_text("; $Id: odin32.e,v 1. 5 2000-07-21 14:56:24bird Exp $\n");305 _insert_text("; $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $\n"); 307 306 _insert_text("; \n"); 308 307 _insert_text("; \n"); … … 317 316 else 318 317 { 319 _insert_text("/* $Id: odin32.e,v 1. 5 2000-07-21 14:56:24bird Exp $\n");318 _insert_text("/* $Id: odin32.e,v 1.6 2000-10-02 04:08:49 bird Exp $\n"); 320 319 _insert_text(" * \n"); 321 320 _insert_text(" * \n"); … … 334 333 _command void odin32_maketagfile() 335 334 { 335 /* We'll */ 336 336 if (file_match('-p 'maybe_quote_filename(strip_filename(_project_name,'e'):+TAG_FILE_EXT),1)=="") 337 337 _project_update_files_retag(true,false,false,true); 338 else 339 _project_update_files_retag(false,false,false,false); 338 340 } 339 341 340 342 _command void odin32_setcurrentdir() 341 343 { 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.