checking in RPM build system
[freeside.git] / rpm / build / expect-signrepo
diff --git a/rpm/build/expect-signrepo b/rpm/build/expect-signrepo
new file mode 100755 (executable)
index 0000000..81035f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/expect
+set password "not our actual passphrase"
+set key [lindex $argv 0]
+set output [lindex $argv 1]
+set input [lindex $argv 2]
+spawn gpg -sab --yes -u "$key" -o $output $input
+expect "Enter passphrase:"
+send -- "$password\r"
+expect eof