Changeset 10019 for trunk/tools


Ignore:
Timestamp:
Apr 15, 2003, 12:08:04 AM (22 years ago)
Author:
bird
Message:

Made it work again :)

Location:
trunk/tools/DailyBuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/DailyBuild/job.cmd

    r9773 r10019  
    1 /* $Id: job.cmd,v 1.9 2003-02-06 21:05:37 bird Exp $
     1/* $Id: job.cmd,v 1.10 2003-04-14 22:08:03 bird Exp $
    22 *
    33 * Main job for building OS/2.
     
    5454    parse source sd1 sd2 sScript
    5555    sScriptDir = filespec('drive', sScript) || filespec('path', sScript);
    56     sLogFile = sScriptDir || '\logs\' || sDate || '.log';
     56    sStateDir = sScriptDir||'State'||sType;
     57    sLogFile = sScriptDir || 'Logs\' || sDate || '.log';
    5758    sTree    = sScriptDir || '..\tree' || sDate;
    58     'mkdir 'sScriptDir||'\logs'
    59     'mkdir 'sScriptDir||'\DBBackup'
     59    'call' sScriptDir||'bin\CreatePath.cmd 'sScriptDir||'Logs'
     60    'call' sScriptDir||'bin\CreatePath.cmd 'sScriptDir||'DBBackup'
     61    'call' sScriptDir||'bin\CreatePath.cmd 'sStateDir;
    6062
    6163    /*
     
    6567    filespec('drive', sScript);
    6668    'cd' sTree;
    67     if (rc <> 0) then call failure rc, 'cd ..\'sTree 'failed.';
     69    if (rc <> 0) then call failure rc, '', 'cd 'sTree 'failed.';
    6870    'call' sScriptDir || 'odin32env.cmd'
    69     if (rc <> 0) then call failure rc, 'Env failed.';
     71    if (rc <> 0) then call failure rc, '', 'Env failed.';
     72    if (IsChangeLogModified(sStateDir)) then
     73    do
     74        say 'Nothing to do. ChangeLog unmodified.'
     75        'echo ChangeLog unmodified >' sLogFile;
     76        exit(0);
     77    end
    7078    'call' sScriptDir || 'odin32clean.cmd'
    71     if (rc <> 0) then call failure rc, 'Clean failed.';
     79    if (rc <> 0) then call failure rc, sStateDir, 'Clean failed.';
    7280    'call' sScriptDir || 'odin32get.cmd'
    73     if (rc <> 0) then call failure rc, 'Get failed.';
     81    if (rc <> 0) then call failure rc, sStateDir, 'Get failed.';
    7482    'call' sScriptDir || 'odin32bldnr.cmd inc'
    75     if (rc <> 0) then call failure rc, 'Build Nr inc failed.';
     83    if (rc <> 0) then call failure rc, sStateDir, 'Build Nr inc failed.';
    7684    'call' sScriptDir || 'odin32build.cmd 2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */
    77     if (rc <> 0) then call failure rc, 'Build failed.';
     85    if (rc <> 0) then call failure rc, sStateDir, 'Build failed.';
    7886    'call' sScriptDir || 'odin32bldnr.cmd commit'
    79     if (rc <> 0) then call failure rc, 'Build Nr commit failed.';
     87    if (rc <> 0) then call failure rc, sStateDir, 'Build Nr commit failed.';
    8088
    8189    /*
     
    8391     */
    8492    'call' sScriptDir || 'odin32pack.cmd  2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */
    85     if (rc <> 0) then call failure rc, 'Packing failed.';
    86     'start /BG "Uploading Odin..." nice -f cmd /C' sScriptDir || 'odin32ftp2.cmd';
    87     if (rc <> 0) then say 'rc='rc' FTPing failed. i = ' || i;
     93    if (rc <> 0) then call failure rc, sStateDir, 'Packing failed.';
     94    'call' sScriptDir || 'odin32ftp2.cmd';
     95    if (rc <> 0) then call failure rc, sStateDir, 'Upload failed!';
     96
    8897
    8998    /*
    9099     * database update
    91100     */
     101    /*
    92102    sScriptDir || 'odin32db.cmd  2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */
    93     if (rc <> 0) then call failure rc, 'db failed.';
     103    if (rc <> 0) then call failure rc, '', 'db failed.';
     104    */
    94105
    95     /*
    96      * Update local installation at d:\odin...
    97      */
    98 /*
    99     'd:';
    100     if (rc <> 0) then call failure rc, 'd: failed.';
    101     'cd d:\odin';
    102     if (rc <> 0) then call failure rc, 'cd d:\odin failed.';
    103     'unzip -o ' || sTree || '\odin*debug.zip';
    104     if (rc <> 0) then call failure rc, 'unzip failed.';
    105     'd:'
    106     if (rc <> 0) then call failure rc, 'd: failed.';
    107 */
    108106    /* successfull exit */
    109107    exit(0);
     
    114112 */
    115113failure: procedure
    116 parse arg rc, sText;
     114parse arg rc, sStateDir, sText;
    117115    say 'rc='rc sText
     116    if (sStateDir <> '') then
     117        call ForceNextBuild sStateDir;
    118118    exit(rc);
    119119
     120
     121/*
     122 * Checks if the change log is up to date or not.
     123 */
     124IsChangeLogModified: procedure
     125parse arg sStateDir;
     126
     127    sDir = directory();
     128    'cd' sStateDir
     129    if (rc <> 0) then call failure rc, 'cd 'sStateDir' failed!';
     130
     131    if (stream(sStateDir'\ChangeLog', 'c', 'query exist') == '') then
     132    do
     133        /* no such file: check it out. */
     134        fUpToDate = 0;
     135    end
     136    else
     137    do
     138        /* check if up to date. */
     139        'cvs status ChangeLog | grep -q "Status: Up-to-date"';
     140        if (rc <> 0) then
     141            fUpToDate = 0;
     142        else
     143            fUpToDate = 1;
     144    end
     145
     146    /*
     147     * Check out the latest ChangeLog.
     148     */
     149    if (\fUpToDate) then
     150    do
     151        /* check if up to date. */
     152        'if exist ChangeLog del ChangeLog';
     153        'call cvs checkout ChangeLog';
     154    end
     155
     156    call directory sDir;
     157return fUpToDate;
     158
     159
     160/*
     161 * Force build next time.
     162 * Called when we fail.
     163 */
     164ForceNextBuild: procedure
     165parse arg sStateDir;
     166    'if exist 'sStateDir'\ChangeLog del 'sStateDir'\ChangeLog';
     167return rc;
  • trunk/tools/DailyBuild/odin32env.cmd

    r9788 r10019  
    1 /* $Id: odin32env.cmd,v 1.30 2003-02-11 15:06:36 bird Exp $
     1/* $Id: odin32env.cmd,v 1.31 2003-04-14 22:08:04 bird Exp $
    22 *
    33 * Sets the build environment.
     
    1717/* base env */
    1818sOldDir = directory();
    19 call directory sSrc||'\bin';
    20 call BuildEnv 'warpin mysql perl~ cvs ddkbase mscv6-16 emx gcc303 vac365õ watcomc11cõ vac40õ vac308 toolkit40 debug'
     19call directory sDir||'\bin';
     20call BuildEnv 'warpin mysql perl~ cvs ddkbase mscv6-16 emx gcc321 vac365õ watcomc11cõ vac40õ vac308 toolkit40 debug'
    2121call directory sOldDir;
    2222
  • trunk/tools/DailyBuild/odin32ftp2.cmd

    r9821 r10019  
    1 /* $Id: odin32ftp2.cmd,v 1.20 2003-02-18 01:01:01 bird Exp $
     1/* $Id: odin32ftp2.cmd,v 1.21 2003-04-14 22:08:04 bird Exp $
    22 *
    33 * Uploads the relase and debug builds to the FTP sites.
     
    8686        rc = cleanFtp('netlabs-delete', '/daily', 'ftp.netlabs.org');
    8787        do j = 1 to asUploads.0
    88             /*rc = putFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org'); */
    89             rc = putRexxFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');
     88            rc = putFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');
     89            /*rc = putRexxFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');*/
    9090            /*rc = forwardSF(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');*/
    9191        end
Note: See TracChangeset for help on using the changeset viewer.