C++ Library containing a lot of needful things: Stack Trace, Command Line Parser, Resource Handling, Configuration Files, Unix Command Execution, Directories, Regular Expressions, Tokenizer, Function Trace, Standard Extensions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rpmsign.exp 326B

1234567891011121314
  1. #!/usr/bin/expect -f
  2. set key [lindex $argv 0]
  3. set password [lindex $argv 1]
  4. set files [lrange $argv 2 end]
  5. ### rpm-sign.exp -- Sign RPMs by sending the passphrase.
  6. spawn rpmsign --define "_gpg_name $key" --addsign {*}$files
  7. expect {
  8. "Enter pass phrase: " {
  9. send -- "$password\r"
  10. exp_continue
  11. } eof
  12. }