diff options
author | Mark Allen <[email protected]> | 2016-05-24 12:10:43 -0500 |
---|---|---|
committer | Mark Allen <[email protected]> | 2016-05-24 12:13:06 -0500 |
commit | b25ef76d301c77189ebdc796a3c81effa75d79e5 (patch) | |
tree | ea099792d816dad2b00751c8cc37ab8d750fff52 | |
parent | 44a1f846a6370b9f40aaf64f2870b49f4ce55209 (diff) | |
download | kerl-b25ef76d301c77189ebdc796a3c81effa75d79e5.tar.gz kerl-b25ef76d301c77189ebdc796a3c81effa75d79e5.tar.bz2 kerl-b25ef76d301c77189ebdc796a3c81effa75d79e5.zip |
Add a version string/command
-rwxr-xr-x | kerl | 8 |
1 files changed, 8 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,8 @@ 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 + echo "version: $KERL_VERSION" exit 1 } @@ -1007,6 +1011,10 @@ tarball_download() } case "$1" in + version) + echo "$KERL_VERSION" + exit 0 + ;; build) if [ "$2" = "git" ]; then if [ $# -ne 5 ]; then |