diff options
author | Mark Allen <[email protected]> | 2016-06-13 14:28:22 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2016-06-13 14:28:22 -0500 |
commit | bb22e63bb6b018b571dfd974b0b02b60dcb8a58d (patch) | |
tree | d5f94c44ad6c99fd2633bfcc5306df13b3cca6db | |
parent | 44a1f846a6370b9f40aaf64f2870b49f4ce55209 (diff) | |
parent | 6d75a24d8af0f451178a5e9e951677cbda1058fe (diff) | |
download | kerl-bb22e63bb6b018b571dfd974b0b02b60dcb8a58d.tar.gz kerl-bb22e63bb6b018b571dfd974b0b02b60dcb8a58d.tar.bz2 kerl-bb22e63bb6b018b571dfd974b0b02b60dcb8a58d.zip |
Merge pull request #140 from kerl/version
Add a version string and command
-rwxr-xr-x | kerl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -22,6 +22,8 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. +KERL_VERSION="1.1.1" + #Grep fix for mac pcre errors GREP_OPTIONS='' @@ -167,6 +169,7 @@ usage() echo " status Print available builds and installations" echo " prompt Print a string suitable for insertion in prompt" echo " cleanup Remove compilation artifacts (use after installation)" + echo " version Print current version (current: $KERL_VERSION)" exit 1 } @@ -1007,6 +1010,10 @@ tarball_download() } case "$1" in + version) + echo "$KERL_VERSION" + exit 0 + ;; build) if [ "$2" = "git" ]; then if [ $# -ne 5 ]; then |