Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use markit solution for source code #15

Open
BradleyA opened this issue Feb 13, 2018 · 2 comments
Open

Use markit solution for source code #15

BradleyA opened this issue Feb 13, 2018 · 2 comments
Assignees
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. future release objective Definition of a mission statement, goals, objectives, roles, requirements, cost / benefit analysis,

Comments

@BradleyA
Copy link
Owner

BradleyA commented Feb 13, 2018

# >>>   In the future, Use markit solution for source code and create a wrapper during compile/build time ?
# >>>       This will change the extension case statement objective: move from comments to variables in compiled code
# >>>       move from comments in source code to variables in compiled code
# >>>       very different vision
# >>>     Use markit in the source code & insert; var BUILD_VERSION="${FILE_RELEASE}.`git rev-list HEAD | wc -l`"
# >>>      Or use markit; to create CHAR variable found in compiled code ?
# >>>           opening comment x.c 'var VERSION="' and ending comment '"'
# >>>           opening comment x.c 'char VERSION[] = "$Version: ' ${FILE_NAME}    ${FILE_RELEASE}.`git rev-list HEAD | wc -l`     ${TIME_STAMP} ${USER} `hostname -f` `git describe` and ending comment '$";'
# >>>                           x.o $Version: XXXX XXXX XXXX XXXX '$'
# >>>           opening comment x.c 'char VERSION_MESSAGE[] = "$Version_message: ' ${FILE_MESSAGE} ` and ending comment '$";'
# >>>                           x.o $Version_message: XXXX '$'
@BradleyA BradleyA added enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. objective Definition of a mission statement, goals, objectives, roles, requirements, cost / benefit analysis, labels Feb 13, 2018
@BradleyA BradleyA self-assigned this Feb 13, 2018
@BradleyA
Copy link
Owner Author

This is going to require line1 and line 2 ${BEGIN_COMMENT_CHAR}

@BradleyA
Copy link
Owner Author

BradleyA commented Oct 18, 2020

https://github.com/dustin/memcached/commit/923a335bf8613696d658448cd9c48a963924d436

Use git's version number for releases.

This will allow more specific version numbers, while simplifying a
proper release down to a tag and make dist.

During development, ./version.sh needs to run periodically to update
the version number. I'd recommend just adding a call to version.sh as
a git post commit hook:

% cat .git/hooks/post-commit

echo "Updating version."
./version.sh

(and make sure the file is executable)

.gitignore

/version.m4

version.sh

#!/bin/sh

if git describe > version.tmp
then
    echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.tmp`])" \
        > version.m4
fi
rm version.tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. future release objective Definition of a mission statement, goals, objectives, roles, requirements, cost / benefit analysis,
Projects
None yet
Development

No branches or pull requests

1 participant