At the moment that is current version, commit ID and branch.
Also ignore the build directory.
--- /dev/null
+build
\ No newline at end of file
--- /dev/null
+all: build
+ @sed \
+ -e "s/GIT-TAG/`git describe --abbrev=0 --tags`/g" \
+ -e "s/GIT-COMMIT/`git rev-parse --short=7 HEAD`/g" \
+ -e "s/GIT-BRANCH/`git rev-parse --abbrev-ref HEAD`/g" \
+ crypto-install.py > build/crypto_install.py
+
+build:
+ mkdir build
--- /dev/null
+crypto-install.py
+
+# USAGE
+
+Run the script to install a baseline setup. Existing files are detected
+and not touched in the process, so running it is always safe to do.
def print_version ():
- print ("crypto-install.py GIT-TAG (GIT-REVISION)")
+ print ("crypto-install.py GIT-TAG (GIT-COMMIT/GIT-BRANCH)")
def input_string (prompt=""):