#!/usr/bin/expect -- # # Wrap the svnmerge script, so we're only prompted for our password once. # # Written by Tilghman Lesher # eval [ concat spawn /usr/bin/svnmerge.real [ lrange $argv 0 end ] ] expect { "Passphrase for" { stty -echo expect_user -re "(.*)\n" stty echo send "$expect_out(1,string)\r" } } expect_after eof exit while (1) { expect { "Passphrase for" { send "$expect_out(1,string)\r" } } }