forked from bmanojlovic/log4c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease
executable file
·74 lines (60 loc) · 1.33 KB
/
release
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
#
# Get log4c version and contruct directory name
#
major=$(grep LOG4C_MAJOR_VERSION= configure.in)
minor=$(grep LOG4C_MINOR_VERSION= configure.in)
micro=$(grep LOG4C_MICRO_VERSION= configure.in)
fname=log4c-${major:20}.${minor:20}.${micro:20}
tagname=log4c_${major:20}_${minor:20}_${micro:20}
echo "Building dist tarball for release $fname"
echo "CVS tagname $tagname"
#
# clean up from previous run
#
rm -fr log4c_dist
rm -fr $fname
mkdir log4c_dist
pushd log4c_dist
prompt="Do you want a fresh cvs checkout , cvs co -r $tagname (y/n)"
echo -n $prompt
read answer
if [ "y" == "$answer" ]
then
echo "Pulling from CVS with cvs co -r $tagname"
cvs co -r $tagname log4c
else
echo "Copying from starting working dir"
cp -r ../../log4c .
fi
#
# make dist
#
pushd log4c
./bootstrap
./configure
make dist
popd
#
#
#
echo "unpacking and testing tarball $fname.tar.gz"
tar -xzvf log4c/$fname.tar.gz
pushd $fname
mkdir build
pushd build
# --enable-debug
../configure --enable-doc --enable-test --enable-reread --enable-test --prefix=`pwd`/install
make
make install
make check
popd
popd
#
# Resync the docs
# rsync -av --delete log4c-1.2.1/build/doc/html/ [email protected]:/home/groups/l/lo/log4c/htdocs/
#
#
# Upload the new file and create the release
#
# https://sourceforge.net/docman/display_doc.php?docid=6445&group_id=1
#