Skip to content
Snippets Groups Projects
Select Git revision
  • 6d8877417467bb2af673735dd0fff16d72473190
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

shell_history.cc

Blame
  • bump-version.py 828 B
    #!/usr/bin/env python
    import sys
    out=[]
    version=sys.argv[1].split('.')
    if len(version)==2:
      major, minor, patch=(int(version[0]), int(version[1]), 0)
    else:
      major, minor, patch=(int(version[0]), int(version[1]), int(version[2]))
    for line in open('modules/config/version.hh'):
      if line.startswith('#define OST_VERSION_MAJOR'):
        out.append('#define OST_VERSION_MAJOR %d\n' % major)
      elif line.startswith('#define OST_VERSION_MINOR'):
        out.append('#define OST_VERSION_MINOR %d\n' % minor)
      elif line.startswith('#define OST_VERSION_PATCH'):
        out.append('#define OST_VERSION_PATCH %d\n' % patch)
      elif line.startswith("#define OST_VERSION_STRING"):
        out.append('#define OST_VERSION_STRING "%d.%d.%d"\n' % (major,minor,patch))
      else:
        out.append(line)
    
    open('modules/config/version.hh', 'w').write(''.join(out))