|
|
@ -43,7 +43,7 @@ DUK_MINOR=`echo "$DUK_VERSION % 10000 / 100" | bc` |
|
|
|
DUK_PATCH=`echo "$DUK_VERSION % 100" | bc` |
|
|
|
DUK_VERSION_FORMATTED=$DUK_MAJOR.$DUK_MINOR.$DUK_PATCH |
|
|
|
GIT_COMMIT=`git rev-parse HEAD` |
|
|
|
GIT_DESCRIBE=`git describe` |
|
|
|
GIT_DESCRIBE=`git describe --always --dirty` |
|
|
|
|
|
|
|
echo "DUK_VERSION: $DUK_VERSION" |
|
|
|
echo "GIT_COMMIT: $GIT_COMMIT" |
|
|
@ -373,6 +373,7 @@ cat src/duktape.h.in | sed -e ' |
|
|
|
-e "s/@DUK_VERSION_FORMATTED@/$DUK_VERSION_FORMATTED/" \ |
|
|
|
-e "s/@GIT_COMMIT@/$GIT_COMMIT/" \ |
|
|
|
-e "s/@GIT_DESCRIBE@/$GIT_DESCRIBE/" \ |
|
|
|
-e "s/@GIT_DESCRIBE_CSTRING@/\"$GIT_DESCRIBE\"/" \ |
|
|
|
> $DISTSRCCOM/duktape.h |
|
|
|
|
|
|
|
# keep the line so line numbers match between the two variant headers |
|
|
|