Move Xcode project to a separate tree parallel to src

This commit is contained in:
2018-02-19 02:09:31 -05:00
parent 827e1b2a6b
commit 8759aad90a
24 changed files with 92 additions and 75 deletions

8
pkg/gitrev.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Usage: gitrev.sh path-to-src
REVID=`git rev-parse HEAD`;
export FULLTAG=`git tag --sort=v:refname | tail -n1`;
TAGREV=`git rev-parse $FULLTAG`;
echo -e "\n#define GIT_REVISION \"${REVID:0:7}\"\n#define GIT_TAG \"$FULLTAG\"\n#define GIT_TAG_REVISION \"${TAGREV:0:7}\"\n" > "$1/tools/gitrev.hpp"