Sha256: cfcd673e8484126fcf3710b67177b0dd19f317c5ebfb1a82776c8944cb459a56

Contents?: true

Size: 593 Bytes

Versions: 34

Compression:

Stored size: 593 Bytes

Contents

#!/usr/bin/env expect -f

set timeout -1
spawn sudo xcodebuild -license

expect {
    "Password"
    {
        stty -echo
        expect_user -re "(.*)\n"
        stty echo
        set pass $expect_out(1,string)
        send -- "$pass\r"
        exp_continue
    }
    "incorrect password attempts"
    {
        exit 1
    }
    "Hit the Enter key to view the license agreements"
    {
        send "\r"
        exp_continue
    }
    "Press 'space' for more"
    {
        send " "
        exp_continue
    }
    "By typing 'agree'"
    {
        send "agree\r"
        exp_continue
    }
}

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rebuild-0.6.1 script/agree_license.exp
rebuild-0.6.0 script/agree_license.exp
rebuild-0.5.2 script/agree_license.exp
rebuild-0.5.1 script/agree_license.exp
rebuild-0.5.0 script/agree_license.exp
rebuild-0.4.3 script/agree_license.exp
rebuild-0.4.2 script/agree_license.exp
rebuild-0.4.1 script/agree_license.exp
rebuild-0.4.0 script/agree_license.exp
rebuild-0.3.3 script/agree_license.exp
rebuild-0.3.2 script/agree_license.exp
rebuild-0.3.1 script/agree_license.exp
rebuild-0.3.0 script/agree_license.exp
rebuild-0.3.0.pre8 script/agree_license.exp
rebuild-0.3.0.pre7 script/agree_license.exp
rebuild-0.3.0.pre6 script/agree_license.exp
rebuild-0.3.0.pre5 script/agree_license.exp
rebuild-0.3.0.pre4 script/agree_license.exp
rebuild-0.3.0.pre3 script/agree_license.exp
rebuild-0.3.0.pre2 script/agree_license.exp