-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_release
More file actions
executable file
·18 lines (18 loc) · 931 Bytes
/
build_release
File metadata and controls
executable file
·18 lines (18 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# $Id$
svn update
echo 'const char* version(void)' > dnplib/tmp_version.cpp
echo '{' >> dnplib/tmp_version.cpp
echo -n ' const char* s = "Release: 0.0.1<br>SVN Version: '>> dnplib/tmp_version.cpp
svnversion -n >> dnplib/tmp_version.cpp
echo -n '<br>Build Date: ' >> dnplib/tmp_version.cpp
echo -n $(date) >> dnplib/tmp_version.cpp
echo '";' >> dnplib/tmp_version.cpp
echo ' return s;' >> dnplib/tmp_version.cpp
echo '}' >> dnplib/tmp_version.cpp
# needed the tmp_version so that svnversion modified flag will not pick
# up the change to the version.cpp and thus undesirably show the M flag
mv dnplib/tmp_version.cpp dnplib/version.cpp
make
# avoid checking in a release version function
svn revert dnplib/version.cpp