-
Notifications
You must be signed in to change notification settings - Fork 34
/
version
executable file
·54 lines (43 loc) · 1.2 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
#
# GuidoLib project
# version management tool
#
if [ $# -ne 1 ]
then
echo "usage: version version_num"
echo " version_num format: n.n.n"
exit 1
fi
ROOT=.
VERSION=$1
if [ -d validate ]
then
echo "moving version number to $VERSION"
else
echo "### This script must be called from the repository root";
exit 1
fi
/bin/echo -n $VERSION > version.txt
CMAKE=$ROOT/build/CMakeLists.txt
echo " updating $CMAKE"
sed "s/\(VERSION \)[0-9]*\.[0-9]*\.[0-9]*/\1$VERSION/" $CMAKE > TMP$$
mv -f TMP$$ $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
#PKG=$ROOT/lang/javascript/package/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