version_w32.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ###
  2. # Copyright (C) 2013 Mamadou DIOP
  3. ###
  4. VERSION_MAJOR=2
  5. VERSION_MINOR=0
  6. VERSION_MICRO=0
  7. SVN_VERSION=$(svnversion -n)
  8. export IFS=":"
  9. i=0
  10. for word in $SVN_VERSION; do
  11. SVN_REVISION[i++]="$word"
  12. done
  13. # path
  14. UpdateVersion()
  15. {
  16. echo "Processing: $1"
  17. sed -i "s/[0-9]\+\,[0-9]\+\,[0-9]\+\,[0-9]\+/$VERSION_MAJOR\,$VERSION_MINOR\,$VERSION_MICRO\,${SVN_REVISION[0]}/g" $1
  18. sed -i "s/[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/$VERSION_MAJOR\.$VERSION_MINOR\.$VERSION_MICRO\.${SVN_REVISION[0]}/g" $1
  19. #sed -i "s/2.0.0.1128/2.0.0.1156/g" $1
  20. #sed -i "s/2,0,0,1128/2,0,0,1156/g" $1
  21. }
  22. UpdateVersion tinyBFCP/version.rc
  23. UpdateVersion tinyDAV/version.rc
  24. UpdateVersion tinyHTTP/version.rc
  25. UpdateVersion tinyIPSec/version.rc
  26. UpdateVersion tinyMEDIA/version.rc
  27. UpdateVersion tinyMSRP/version.rc
  28. UpdateVersion tinyNET/version.rc
  29. UpdateVersion tinyRTP/version.rc
  30. UpdateVersion tinySAK/version.rc
  31. UpdateVersion tinySDP/version.rc
  32. UpdateVersion tinySIGCOMP/version.rc
  33. UpdateVersion tinySIP/version.rc
  34. UpdateVersion tinySMS/version.rc
  35. UpdateVersion tinyXCAP/version.rc
  36. UpdateVersion bindings/version.rc
  37. UpdateVersion plugins/pluginCUDA/version.rc
  38. UpdateVersion plugins/pluginDirectShow/version.rc
  39. UpdateVersion plugins/pluginWASAPI/version.rc
  40. UpdateVersion plugins/pluginWinAudioDSP/version.rc
  41. UpdateVersion plugins/pluginWinMF/version.rc
  42. UpdateVersion plugins/pluginWinIPSecVista/version.rc
  43. UpdateVersion plugins/pluginWinDD/version.rc