Last change
on this file since 8631 was
8631,
checked in by charles, 13 years ago
|
(trunk) fix update-version-h.sh script issue on NetBSD, reported by stdisease, patched by geirha; thanks to both
|
-
Property svn:executable set to
*
|
File size:
824 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | echo "creating libtransmission/version.h" |
---|
3 | |
---|
4 | user_agent_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep user_agent_prefix | cut -d , -f 6` |
---|
5 | |
---|
6 | peer_id_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep peer_id_prefix | cut -d , -f 6` |
---|
7 | |
---|
8 | if [ -d .svn ]; then |
---|
9 | svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1` |
---|
10 | else |
---|
11 | svn_revision=`awk '/\\$Id: /{ if ($4>i) i=$4 } END {print i}' */*.cc */*.[chm]` |
---|
12 | fi |
---|
13 | |
---|
14 | cat > libtransmission/version.h << EOF |
---|
15 | #define PEERID_PREFIX "${peer_id_prefix}" |
---|
16 | #define USERAGENT_PREFIX "${user_agent_prefix}" |
---|
17 | #define SVN_REVISION "${svn_revision}" |
---|
18 | #define SVN_REVISION_NUM ${svn_revision} |
---|
19 | #define SHORT_VERSION_STRING "${user_agent_prefix}" |
---|
20 | #define LONG_VERSION_STRING "${user_agent_prefix} (${svn_revision})" |
---|
21 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.