my compile, copy, chmod run automation

Discussion in 'iOS Development' started by lgchicken, May 10, 2008.

  1. lgchicken

    lgchicken New Member

    Joined:
    Apr 12, 2008
    Messages:
    80
    Likes Received:
    1
    i made this batch script which compiles using the windows toolchain, then uses winscp to copy and chmod the files, then uses putty to open the ipod. (i used extra putty, to automate the process further, but here is my batch script up to that point)
    PHP:
    SET APP=test1
    SET URL
    =192.168.1.8

    SET CYGLOC
    =C:\cygwin
    SET IPSUB
    =iphone-apps
    SET SCPLOC
    =C:\Program Files\WinSCP
    SET PUTLOC
    =C:\Program Files\PuTTY
    SET USR
    =root
    SET PAS
    =alpine
    C
    :
    chdir %CYGLOC%\bin
    bash 
    --login --"cd ../../%IPSUB%/%APP%;make"
    cd %CYGLOC%
    SET TMP=#tmp_ftp_script
    echo open %USR%:%PAS%@%URL%>>%TMP%
    echo 
    cd ../Applications/>>%TMP%
    echo 
    put %CYGLOC%\%IPSUB%\%APP% %APP%.app>>%TMP%
    echo 
    chmod  777 %APP%.app>>%TMP%
    echo 
    chmod  777 %APP%.app/*>>%TMP%
    echo exit>>%TMP%
    PHP:
    cd "%SCPLOC%\"
    winscp.com /console /script=%CYGLOC%\%TMP%
    cd "
    %PUTLOC%\"  
    putty.exe
    you can customise the options at the top for each job/ change of ip adress, plus your install locations...

    hope this helps people speed things up, i hated compiling, copying and manually starting when i program for psp...




    like i said, you can use extraputty to automate further, my script continued to make a new CommandFile (used to automate actions in extraputty) and then runs my iPod session which has the automation open and my ip set.

    lemme know if you like it, although, would it be easy for me to package these together for you guys?

    anyhow...

    Please Register or Log in to view images

    have fun

    EDIT: anyone know why its cutting the script half way?

Share This Page