summaryrefslogtreecommitdiffstats
path: root/version_w32.sh
blob: 59d1e4952092fbed985a39a05ad57c3687f22999 (plain)
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
###
# Copyright (C) 2013 Mamadou DIOP
###
VERSION_MAJOR=2
VERSION_MINOR=0
VERSION_MICRO=0
SVN_VERSION=$(svnversion -n)

export IFS=":"
i=0
for word in $SVN_VERSION; do
  SVN_REVISION[i++]="$word"
done

# path
UpdateVersion()
{
    echo "Processing: $1"
    sed -i "s/[0-9]\+\,[0-9]\+\,[0-9]\+\,[0-9]\+/$VERSION_MAJOR\,$VERSION_MINOR\,$VERSION_MICRO\,${SVN_REVISION[0]}/g" $1
    sed -i "s/[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/$VERSION_MAJOR\.$VERSION_MINOR\.$VERSION_MICRO\.${SVN_REVISION[0]}/g" $1
    
    #sed -i "s/2.0.0.1128/2.0.0.1156/g" $1
    #sed -i "s/2,0,0,1128/2,0,0,1156/g" $1
}

UpdateVersion tinyBFCP/version.rc
UpdateVersion tinyDAV/version.rc
UpdateVersion tinyHTTP/version.rc
UpdateVersion tinyIPSec/version.rc
UpdateVersion tinyMEDIA/version.rc
UpdateVersion tinyMSRP/version.rc
UpdateVersion tinyNET/version.rc
UpdateVersion tinyRTP/version.rc
UpdateVersion tinySAK/version.rc
UpdateVersion tinySDP/version.rc
UpdateVersion tinySIGCOMP/version.rc
UpdateVersion tinySIP/version.rc
UpdateVersion tinySMS/version.rc
UpdateVersion tinyXCAP/version.rc
UpdateVersion bindings/version.rc

UpdateVersion plugins/pluginCUDA/version.rc
UpdateVersion plugins/pluginDirectShow/version.rc
UpdateVersion plugins/pluginWASAPI/version.rc
UpdateVersion plugins/pluginWinAudioDSP/version.rc
UpdateVersion plugins/pluginWinMF/version.rc
UpdateVersion plugins/pluginWinIPSecVista/version.rc
UpdateVersion plugins/pluginWinDD/version.rc
OpenPOWER on IntegriCloud