gitID

gitID

part of shnell – a source to source compiler enhancement tool

© Jens Gustedt, 2019

Get the current git ID hash

An insert directive that provides the bytes of the git hash for the source file as sequence of integer values. The result is a macro definition with the name that is passed to the directive.

Coding and configuration

The following code is needed to enable the sh-module framework.

SRC="$_" . "${0%%/${0##*/}}/import.sh"