Git Product home page Git Product logo

inctement-version-file's Introduction

Скрипт хук, инкрементирующий файл версий

  • на вход принимает имя файла с версией приложения
  • версия должна быть в формате X.Y.Z, где X - любой число от 0 до бесконечности, Y и Z - числа от 0 до 9 включительно
  • хук увеличивает число Z на единицу, пока оно не станет больше 9ти, потом он выставляет Z на 0, а число Y увеличивает на единицу
  • и так же с X, когда Y станет больше 9
  • X не ограничивается девятью и растет постоянно

Пример запуска

./version-hook.sh VERSION

Script hook that increments the version file

  • accepts the name of the file with the application version as input
  • version must be in the format X.Y.Z, where X - any number from 0 to infinity,Y and Z - numbers from 0 to 9 inclusive
  • the hook increases the number Z by one until it becomes more than 9, then it sets Z to 0, and the number Y increases by one
  • and so with X when Y becomes greater than 9
  • X is not limited to nine and grows constantly

Example execute

./version-hook.sh VERSION

Автор \ Author

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.