File: test.sh

package info (click to toggle)
ifile 1.3.8-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,024 kB
  • ctags: 873
  • sloc: ansic: 7,413; makefile: 370; sh: 300
file content (21 lines) | stat: -rwxr-xr-x 899 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

./configure --prefix=/tmp &> /dev/null
make &> /dev/null
make install &> /dev/null
if [ -f /tmp/man/man1/ifile.1 ]; then echo ok 1; else echo not ok 1; fi

./configure --prefix=/tmp --exec-prefix=/tmp/linux &> /dev/null
make &> /dev/null
make install &> /dev/null
if [ -f /tmp/linux/bin/ifile ]; then echo ok 2; else echo not ok 2; fi

./configure --bindir=/tmp/foobin --mandir=/tmp/fooman &> /dev/null
make &> /dev/null
make install &> /dev/null
if [ -f /tmp/foobin/ifile ]; then echo ok 3; else echo not ok 3; fi
if [ -f /tmp/foobin/ifilter.mh ]; then echo ok 4; else echo not ok 4; fi
if [ -f /tmp/foobin/irefile.mh ]; then echo ok 5; else echo not ok 5; fi
if [ -f /tmp/foobin/knowledge_base.mh ]; then echo ok 6; else echo not ok 6; fi
if [ -f /tmp/foobin/news2mail ]; then echo ok 7; else echo not ok 7; fi
if [ -f /tmp/fooman/man1/ifile.1 ]; then echo ok 8; else echo not ok 8; fi