I wrote a little script to do this. It requires wget, but it works well. It should work in a unix environment for windows.. but I have no idea, and no way to test it myself. Here's the code, you just have to put this in a .sh file in the root repos folder, and fix the file's permissions.

#! /bin/sh

darcs pull

echo -n "continue? (y/n): "
read -e CONT

if [[ $CONT == y ]]
then
    cd Factor/

    ARCH=0
    while [[ $ARCH < 1 || $ARCH > 13 ]]
    do
        echo "Run with one of the following parameters:"
        echo ""
        echo "1  bsd-x86"
        echo "2  bsd-amd64"
        echo "3  linux-x86"
        echo "4  linux-amd64"
        echo "5  linux-ppc"
        echo "6  linux-arm"
        echo "7  solaris-x86"
        echo "8  solaris-amd64"
        echo "9  macosx-x86"
        echo "10 macosx-ppc"
        echo "11 windows"
        echo "12 windows-ce-arm"
        echo "13 windows-ce-x86"
        echo
        echo -n "(1-13): "
        read ARCH
    done

    rm -f vm/*.o
    rm -f factor

    if [[ $ARCH == 9 || $ARCH == 10 ]]
    then
        rm -f Factor.app/Contents/MacOS/Factor
    fi

    rm -f boot.image.*

    case $ARCH in
        "1" | "3" | "7" | "9" | "11" | "13" )
            wget http://factorcode.org/images/latest/boot.image.x86
        ;;
        "2" | "4" | "8" )
            wget http://factorcode.org/images/latest/boot.image.amd64
        ;;
        "5" | "10" )
            wget http://factorcode.org/images/latest/boot.image.ppc
        ;;
        "6" | "12" )
            wget http://factorcode.org/images/latest/boot.image.arm
        ;;
    esac

    case $ARCH in
        "1" )
            make bsd-x86
            ./factor -i=boot.image.x86
        ;;
        "2" )
            make bsd-amd64
            ./factor -i=boot.image.amd64
        ;;
        "3" )
            make linux-x86
            ./factor -i=boot.image.x86
        ;;
        "4" )
            make linux-amd64
            ./factor -i=boot.image.amd64
        ;;
        "5" )
            make linux-ppc
            ./factor -i=boot.image.ppc
        ;;
        "6" )
            make linux-arm
            ./factor -i=boot.image.arm
        ;;
        "7" )
            make solaris-x86
            ./factor -i=boot.image.x86
        ;;
        "8" )
            make solaris-amd64
            ./factor -i=boot.image.amd64
        ;;
        "9" )
            make macosx-x86
            ./factor -i=boot.image.x86
        ;;
        "10" )
            make macosx-ppc
            ./factor -i=boot.image.ppc
        ;;
        "11" )
            make windows
            ./factor -i=boot.image.x86
        ;;
        "12" )
            make windows-ce-arm
            ./factor -i=boot.image.arm
        ;;
        "13" )
            make windows-ce-x86
            ./factor -i=boot.image.x86
        ;;
    esac
fi


On May 12, 2007, at 8:27 AM, Csaba Henk wrote:

Hi,

I frequently update my factor instance from darcs. I do it in the
following tedious manner:

- Pull changes
- If C code has changed, recompile the VM
- Pull bootstrap image
- Bootstrap

Is there no a more straightforward way to do this? In particular, one
which doesn't depend on anything but the source code (ie., no boot
needs to be fetched).

Btw, the boot image: it's not versioned, so I don't even know if it's
refreshed. What's the strategy for that? And why don't you distribute it
compressed?

Thanks,
Csaba


---------------------------------------------------------------------- ---
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to