note duplicated gitrev build process
This commit is contained in:
@@ -82,6 +82,7 @@ if env['debug']:
|
||||
env.Append(CCFLAGS=['/Zi', '/Od'])
|
||||
|
||||
# This command generates the header with git revision information
|
||||
# NOTE: Changes made here must also be made in pkg/gitrev.sh!
|
||||
def gen_gitrev(env, target, source):
|
||||
revid = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True);
|
||||
fulltag = subprocess.check_output(["git", "tag", "--sort=v:refname"], text=True).split('\n')[-1]
|
||||
|
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Usage: gitrev.sh path-to-src
|
||||
|
||||
# This script generates the header with git revision information
|
||||
# NOTE: Changes made here must also be made in SConstruct!
|
||||
REVID=`git rev-parse HEAD`;
|
||||
export FULLTAG=`git tag --sort=v:refname | tail -n1`;
|
||||
TAGREV=`git rev-parse $FULLTAG`;
|
||||
|
Reference in New Issue
Block a user