Code Monkey home page Code Monkey logo

semver's Introduction

SemVer

SemVer is a Utility to Bump Semantic Version String in C header, java, and text file.

Travis Linux build status:Build Status

AppVeyor Windows build status:Build status

Coverage:Coverage Status

Context

These steps would be done to release a software normally

  1. Create a source file which contain version string.
  2. Increase version number manually, for example, increase 0.1.0 to 0.2.0.
  3. Rebuild your software and get the target file manually, for example target.hex.
  4. Append the version number to the target file manually, for example target_0.2.0.hex.

SemVer aims to do the step 1, step 2 and step 4.

What can SemVer Do

SemVer creates version head file, increases version and appends the version to a file name.
The version format defined in semver.org.

Build from Code

There are released binaries for windows in SemVer Release. You can try to use them directly.

If you want to build it from code. Compile tool is GCC. Mingw or Cygwin is needed be installed on windows. GCC is needed be installed on Linux.

Run make to build the executable binary.

Example

Create a head file version.h with initial version value 0.1.0
semver -i0.1.0 version.h

Increase the version value to 0.1.1
semver -z version.h

Increase the version value to 0.2.0
semver -y version.h

Increase the version value to 1.0.0
semver -x version.h

Append version to file target.hex to target_1.0.0.hex
semver -atarget.hex version.h

semver's People

Contributors

hyller avatar

Stargazers

 avatar

Watchers

 avatar

semver's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.