forked from femto-dev/femto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_release.bash
More file actions
executable file
·56 lines (55 loc) · 1013 Bytes
/
make_release.bash
File metadata and controls
executable file
·56 lines (55 loc) · 1013 Bytes
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
#!/bin/bash
gitrepo=`pwd`
chmod -R u+w ../femto_release
rm -Rf ../femto_release
mkdir ../femto_release
pushd ../femto_release
git clone $gitrepo
cd femto
# instead of using make dist, we use git archive.
#sh autogen.sh
#./configure
##make distcheck does a VPATH/out-of-tree-build not working with RE2
#make dist
VERSION=`head -n 1 ChangeLog | cut -d ' ' -f 1`
ARCHIVE_NAME="femto-$VERSION"
git archive --prefix=$ARCHIVE_NAME/ -o $ARCHIVE_NAME.tar.gz HEAD
mkdir dist-build
cd dist-build
tar xvzf ../femto*.tar.gz
cd femto-*
mkdir build
cd build
cmake ..
if [ $? -ne 0 ]; then
echo "Cmake failed"
exit 1
fi
make
if [ $? -ne 0 ]; then
echo "Cmake make failed"
exit 1
fi
make check
if [ $? -ne 0 ]; then
echo "Cmake make check failed"
exit 1
fi
cd ..
sh autogen.sh
./configure
if [ $? -ne 0 ]; then
echo "autotools configure failed"
exit 1
fi
make
if [ $? -ne 0 ]; then
echo "autotools make failed"
exit 1
fi
make check
if [ $? -ne 0 ]; then
echo "autotools make check failed"
exit 1
fi
popd