Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tests / build-and-run-rcs
1 #!/bin/sh
2 set -x
3 # $Id$
4 ##if test "X$FAST" != "X" ; then echo "Not running $0" ; exit 0 ; fi
5 echo -n pwd before is ' '
6 pwd
7 #
8 # copied from generic-build because rcs wants to put (hard)links into tar balls.
9 #
10 filename=$AFSROOT/stacken.kth.se/ftp/pub/gnu/rcs/rcs-5.7.tar.gz
11 b=rcs-5.7
12 obj=$b-obj
13 gzip -dc $filename | tar xvf - >&4 2>&1
14 mkdir $obj || exit 1
15 cd $obj || exit 1
16 ../$b/configure >&4 || exit 1
17 make $MAKEFLAGS || exit 1
18 echo -n pwd after is ' '
19 pwd
20 echo row1 > testfile
21 echo log1 | ./src/ci -u testfile
22 ./src/co -l testfile
23 echo row2 >> testfile
24 echo log2 | ./src/ci -u testfile
25 ./src/co -l testfile
26 echo row3 >> testfile
27 echo log3 | ./src/ci -u testfile
28 wc -l testfile | grep '3 testfile' || exit 1
29