From a68848faf74663f8f54b210b9ce5a91436c5aa18 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 17 Mar 2016 16:31:34 +0100 Subject: [PATCH] (Auto) adjusting micro version (to current month) --- extra/shutils/precommit-hook | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/shutils/precommit-hook b/extra/shutils/precommit-hook index 4896f531c..f12e53b8b 100644 --- a/extra/shutils/precommit-hook +++ b/extra/shutils/precommit-hook @@ -10,7 +10,7 @@ if [ -f $FULLPATH ] then LINE=$(grep -o ${FULLPATH} -e 'VERSION = "[0-9.]*"'); declare -a LINE; - INCREMENTED=$(python -c "import re, sys; version = re.search('\"([0-9.]*)\"', sys.argv[1]).group(1); _ = version.split('.'); _.append(0) if len(_) < 3 else _; _[-1] = str(int(_[-1]) + 1); print sys.argv[1].replace(version, '.'.join(_))" "$LINE") + INCREMENTED=$(python -c "import re, sys, time; version = re.search('\"([0-9.]*)\"', sys.argv[1]).group(1); _ = version.split('.'); _.append(0) if len(_) < 3 else _; _[-1] = str(int(_[-1]) + 1); month = str(time.gmtime().tm_mon); _[-1] = '1' if _[-2] != month else _[-1]; _[-2] = month; print sys.argv[1].replace(version, '.'.join(_))" "$LINE") if [ -n "$INCREMENTED" ] then sed "s/${LINE}/${INCREMENTED}/" $FULLPATH > $FULLPATH.tmp && mv $FULLPATH.tmp $FULLPATH diff --git a/lib/core/settings.py b/lib/core/settings.py index 30f158e60..5c14dc43d 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version and site -VERSION = "1.0.0.22" +VERSION = "1.0.3.1" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")