File: config

package info (click to toggle)
exult 0.98rc1-2
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 6,924 kB
  • ctags: 8,928
  • sloc: cpp: 83,768; sh: 7,643; ansic: 4,328; makefile: 890; yacc: 618; lex: 255; xml: 19
file content (43 lines) | stat: -rw-r--r-- 832 bytes parent folder | download
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
#!/bin/sh -e

. /usr/share/debconf/confmodule

while true; do
  set +e
  db_input high exult/blackgate
  [ $? -eq 30 ] && break	# question was skipped, don't validate answer
  set -e
  db_go

  db_get exult/blackgate
  [ -z "$RET" ] && break
  if [ -d "$RET" ]; then
    if ls "$RET" | grep -qi '^static$'; then
      break
    else
      db_text high exult/no_static || true
    fi
  else
    db_text high exult/not_a_dir || true
  fi
done

while true; do
  set +e
  db_input high exult/serpent
  [ $? -eq 30 ] && break	# question was skipped, don't validate answer
  set -e
  db_go

  db_get exult/serpent
  [ -z "$RET" ] && break
  if [ -d "$RET" ]; then
    if ls "$RET" | grep -qi '^static$'; then
      break
    else
      db_text high exult/no_static || true
    fi
  else
    db_text high exult/not_a_dir || true
  fi
done