summarylogtreecommitdiffstats
path: root/mkconfig.expect
diff options
context:
space:
mode:
Diffstat (limited to 'mkconfig.expect')
-rwxr-xr-xmkconfig.expect50
1 files changed, 50 insertions, 0 deletions
diff --git a/mkconfig.expect b/mkconfig.expect
new file mode 100755
index 000000000000..28042391db2f
--- /dev/null
+++ b/mkconfig.expect
@@ -0,0 +1,50 @@
+#!/usr/bin/expect
+
+if { 0 == [info exists env(PKGDIR)] } {
+ puts "PKGDIR environment variable must be set"
+ exit 1
+}
+
+set timeout -1
+spawn make
+
+expect "Install directory *\/usr\/share\/man\/$env(LANG)"
+send "$env(PKGDIR)\/usr\/share\/man\/ja_JP\.UTF\-8\n"
+
+expect "compress manual with"
+expect "0: none"
+expect "select"
+send "0\n"
+
+expect "uname of page owner *root"
+send "\n"
+
+expect "group of page owner *root"
+send "\n"
+
+expect "All OK?"
+send "y\n"
+
+expect "INSTALL PACKAGE SELECTION"
+while { true } {
+ expect "Y/n" {
+ send "\n"
+ } "y/N" {
+ send "\n"
+ } "All OK?" {
+ send "y\n"
+ break
+ }
+}
+
+expect "RESOLVE CONFLICTS"
+while { true } {
+ expect "Which to install?" {
+ send "\n"
+ } "All OK?" {
+ send "y\n"
+ break
+ }
+}
+
+interact