Skip to content

Commit

Permalink
doc: update readme introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFabre committed Nov 12, 2024
1 parent 38f0e38 commit b620737
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
# rever

A little POSIX shell script that generates revision and version information for your C project.
A little POSIX shell script that generates a C header containing the version information (Major Minor etc...) of a Git based repository.

Works by parsing the `git describe` command to retrieve all information.
The script simply parses the `git describe` command to extract the firmware information, and create the corresponding defines.

## Compatibility

- [x] C/C++ project
- [x] Zephyr project
### Genuine C/C++ project

The script will generate a C header file.

```sh
./rever.sh -o project/include/version.h
```

### Zephyr project

The script will generate the cmake version file.

```sh
./rever.sh -f zephyr -o cmake-project/VERSION
```

## Requirements

Expand All @@ -16,7 +29,7 @@ Works by parsing the `git describe` command to retrieve all information.

## Usage

Copy the `rever.sh` script into your repository and let the magic happen.
Clone the repo or simply copy the `rever.sh` script into your repository and let the magic happen.

All available options can be listed with option `-h`

Expand Down

0 comments on commit b620737

Please sign in to comment.