Ignore:
Timestamp:
Jan 10, 2001, 2:50:48 PM (25 years ago)
Author:
bird
Message:

Changed and corrected .zip packing. (uses the root of the tree as base directory)

File:
1 edited

Legend:

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

    r4903 r4917  
    1 /* $Id: odin32pack.cmd,v 1.9 2001-01-09 18:46:28 bird Exp $
     1/* $Id: odin32pack.cmd,v 1.10 2001-01-10 13:50:48 bird Exp $
    22 *
    33 * Make the two zip files.
     
    1515     * Make .WPI files.
    1616     */
    17     call ChDir 'tools\install';
     17/*    call ChDir 'tools\install';
    1818    'call odin.cmd debug'
    1919    if (RC <> 0) then call failure rc, 'odin.cmd debug failed.';
     
    2323    if (RC <> 0) then call failure rc, 'failed to move the *.wpi ->' sStartDir;
    2424    call ChDir '..\..';
    25 
     25*/
    2626
    2727    /*
    2828     * Make .ZIP files.
    2929     */
    30     call ChDir 'bin';
    31     call packdir 'debug', 'debug'
    32     call packdir3dx 'debug', 'debug'
    33     call packdir 'release', 'release'
    34     call packdir3dx 'release', 'release'
    35     call ChDir '..';
     30    call packdir 'bin\debug', 'debug'
     31    call packdir3dx 'bin\debug\glide', 'glide-debug'
     32    call packdir 'bin\release', 'release'
     33    call packdir3dx 'bin\release\glide', 'glide-release'
    3634
    3735    /* return successfully */
     
    4240parse arg sDir, sType;
    4341
    44     sZipFile = filespec('path', directory())||'odin32bin-' || DATE(S) || '-' || sType || '.zip';
     42    sZipFile = directory() || '\odin32bin-' || DATE(S) || '-' || sType || '.zip';
    4543
    4644    /*
    4745     * Change into the directory we're to pack and do some fixups
    4846     */
     47    sRoot = directory();
    4948    call ChDir sDir
    5049    'del /Q /Y /Z *.cmd > nul 2>&1'
     
    6968
    7069    /* Copy root files into the pack directory. */
    71     call copy '..\wgss50.dll', 'system32\wgss50.dll';
    72     call copy '..\odin.ini'
    73     call copy '..\..\doc\odin.ini.txt'
    74     call copy '..\..\LICENSE.txt';
    75     call copy '..\..\ChangeLog';
    76     call copy '..\..\doc\Readme.txt';
    77     call copy '..\..\doc\Logging.txt';
    78     call copy '..\..\doc\ReportingBugs.txt';
    79     call copy '..\..\doc\ChangeLog-2000';
    80     call copy '..\..\doc\ChangeLog-1999';
     70    call copy sRoot'\bin\odin.ini'
     71    call copy sRoot'\doc\odin.ini.txt'
     72    call copy sRoot'\LICENSE.txt';
     73    call copy sRoot'\ChangeLog';
     74    call copy sRoot'\doc\Readme.txt';
     75    call copy sRoot'\doc\Logging.txt';
     76    call copy sRoot'\doc\ReportingBugs.txt';
     77    call copy sRoot'\doc\ChangeLog-2000';
     78    call copy sRoot'\doc\ChangeLog-1999';
    8179
    8280    /*
     
    8482     * and pack it.
    8583     */
    86     'ren ..\'||sDir '.\system32'
     84    'ren' sRoot'\'sDir '.\system32'
    8785    if (RC <> 0) then call failure rc, 'renaming' sDir'->system32 failed';
    8886    'ren .\system32\glide ..\glide_tmp'
    8987    if (RC <> 0) then
    9088    do
    91         'ren .\system32 ..\'||sDir
    92         call failure rc, 'renaming system32\glide -> ..\glide_tmp failed';
     89        rc2 = rc;
     90        'ren .\system32' sRoot'\'sDir
     91        call failure rc2, 'renaming system32\glide -> ..\glide_tmp failed';
    9392    end
     93
     94    call copy sRoot'\bin\wgss50.dll', 'system32\wgss50.dll';
    9495
    9596    say 'zip -9 -R' sZipFile '* -xCVS';
     
    99100        rc2 = rc;
    100101        'ren ..\glide_tmp .\system32\glide'
    101         'ren .\system32 ..\'||sDir
     102        'ren .\system32' sRoot'\'sDir
    102103        call failure rc2, 'zip...';
    103104    end
    104105    'ren ..\glide_tmp .\system32\glide'
    105106    if (RC <> 0) then call failure rc, 'renaming glide_tmp failed';
    106     'ren .\system32 ..\'||sDir
     107    'ren .\system32' sRoot'\'sDir
    107108    if (RC <> 0) then call failure rc, 'renaming' sDir'->system32 failed';
    108109
    109110    /* restore directory */
    110     call ChDir '..';
     111    call directory(sRoot);
    111112    return;
    112113
     
    116117packdir3dx: procedure expose sStartDir;
    117118parse arg sDir, sType;
    118     sZipFile = filespec('path', directory())||'odin32bin-' || DATE(S) || '-glide-' || sType || '.zip';
    119     sDir = directory();
     119    sZipFile = directory()||'\odin32bin-' || DATE(S) || '-' || sType || '.zip';
    120120
     121    sRoot = directory();
    121122    call ChDir sDir
    122     say 'zip -9 -R' sZipFile 'glide\* -xCVS';
    123     'zip -9 -R' sZipFile 'glide\* -xCVS';
     123    say 'zip -9 -R' sZipFile '* -xCVS';
     124    'zip -9 -R' sZipFile '* -xCVS';
    124125    if (rc <> 0) then call failure rc, 'zip...';
    125126
    126127    /* restore directory */
    127     call directory(sDir);
     128    call directory(sRoot);
    128129    return;
    129130
Note: See TracChangeset for help on using the changeset viewer.