Here is my powershell script that does the build in windows:

$firstArg = $args[0]

function cleanPath()
{
        [Array] $newPathArray = @()

        foreach ($line in $env:path.split(';'))
        {
                if ($line -match "mingw" -or $line -match "msys")
                {
                        echo ":: removed : $line"
                }
                else
                {
                        $newPathArray += , $line
                }
        }

        $env:path = [string]::Join(';', $newPathArray)
}

function setPath()
{
        $Env:Path = "c:\mingw\bin;c:\msys\1.0\bin;" + $env:path
}

function main()
{
        . setPath

        cd c:\rev\src\fossil
        if ($firstArg -match "clean")
        {
                fossil clean --force
        }
        make -f makefile.w32
        
        . cleanPath
}

. main


Ron Wilson, Engineering Project Lead
(o) 434.455.6453, (m) 434.851.1612, www.harris.com

HARRIS CORPORATION   |   RF Communications Division     
assuredcommunications(tm)



_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to