From: Olof-Joachim Frahm Date: Thu, 8 Jan 2015 14:22:59 +0000 (+0000) Subject: Add Makefile to update version information. X-Git-Tag: 0.1.0~4 X-Git-Url: http://repo.macrolet.net/gitweb/?p=crypto-install.git;a=commitdiff_plain;h=566386c4970db990d3ef7dcd8fd610e78d114066 Add Makefile to update version information. At the moment that is current version, commit ID and branch. Also ignore the build directory. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..676a09d --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..b44b229 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +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. diff --git a/crypto-install.py b/crypto-install.py index 2e3b926..0aff602 100755 --- a/crypto-install.py +++ b/crypto-install.py @@ -6,7 +6,7 @@ import argparse, ConfigParser, os, sys, textwrap 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=""):