-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion
executable file
·42 lines (33 loc) · 945 Bytes
/
version
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
#!/bin/sh
#
# GuidoLib project
# version management tool
#
if [ $# -ne 1 ]
then
echo "usage: version version_num"
echo " version_num format: n.n"
exit 1
fi
ROOT=.
VERSION=$1
echo "moving version number to $VERSION"
CMAKE=$ROOT/cmake/CMakeLists.txt
echo " updating $CMAKE"
sed "s/\(set ([A-Z]*VERS[^0-9]*\)[0-9]*\.[0-9]*/\1$VERSION/" $CMAKE > TMP$$
mv -f TMP$$ $CMAKE
cmake $ROOT/cmake
DOC=$ROOT/doc/doxygen/Makefile
echo " updating $DOC"
sed "s/\(VERSION := \)[0-9]*\.[0-9]*/\1$VERSION/" $DOC > TMP$$
mv -f TMP$$ $DOC
PKG=$ROOT/package/Makefile
echo " updating $PKG"
sed "s/\(VERSION := \)[0-9]*\.[0-9]*/\1$VERSION/" $PKG > TMP$$
mv -f TMP$$ $PKG
PKG=$ROOT/lang/javascript/Makefile
echo " updating $PKG"
sed "s/\(VERSION := \)[0-9]*\.[0-9]*/\1$VERSION/" $PKG > TMP$$
mv -f TMP$$ $PKG
echo "==> change manually GUIDOEngine.cpp and rc files in win32 folder"
open -t platforms/win32/GUIDOEngine.rc src/engine/lib/GUIDOEngine.cpp