summarylogtreecommitdiffstats
path: root/mkconfig.expect
blob: 28042391db2f169fb54ed74754e281fc5166224e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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