-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitreleases.sh
executable file
·80 lines (73 loc) · 1.38 KB
/
gitreleases.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /bin/bash
OK="\033[1;32m OK \033[0m"
FAIL="\033[1;31m FAILED \033[0m"
wd=/tmp/testdownloads
if test -d $wd
then
rm -rf $wd
fi
mkdir $wd
cd $wd
echo "Testing in directory $wd"
files='ticcutils timbl timblserver mbt mbtserver libfolia uctodata ucto frogdata frog dimbl foliautils toad ticcltools wopr'
for file in $files
do
gh release download -A tar.gz --repo https://github.com/LanguageMachines/$file
echo "downloaded $file"
tar zxf $file-*.tar.gz
done
# configure and make all
for file in $files
do
for dir in $file-*
do
if test -d $dir
then
echo $dir
pushd $dir
echo "configuring $file in $dir"
sh bootstrap.sh
./configure --prefix=$wd > $wd/$file.log 2>&1
if [ $? -ne 0 ];
then
echo -e $FAIL
popd
echo "see $file.log"
exit
fi
echo "making $file in $dir"
make -j4 install >> $wd/$file.log 2>&1
if [ $? -ne 0 ];
then
echo -e $FAIL
popd
echo "see $file.log"
exit
fi
echo "checking $file in $dir"
make check >> $wd/$file.log 2>&1
if [ $? -ne 0 ];
then
echo -e $FAIL
popd
echo "see $file.log"
exit
fi
popd
fi
done
done
echo "voor test"
pwd
# poor mans test
testfiles='timbl timblserver mbt mbtserver folialint ucto frog dimbl FoLiA-alto'
for file in $testfiles
do
for dir in $file-*
do
if test -d $dir
then
./bin/$file -V
fi
done
done