File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,13 +12,11 @@ chmod +x .git/hooks/pre-commit
1212
1313PROJECT=" ../../"
1414SETTINGS=" ../../lib/core/settings.py"
15- CHECKSUM=" ../../txt/checksum.md5"
1615
1716declare -x SCRIPTPATH=" ${0} "
1817
1918PROJECT_FULLPATH=${SCRIPTPATH%/* } /$PROJECT
2019SETTINGS_FULLPATH=${SCRIPTPATH%/* } /$SETTINGS
21- CHECKSUM_FULLPATH=${SCRIPTPATH%/* } /$CHECKSUM
2220
2321git diff $SETTINGS_FULLPATH | grep " VERSION =" > /dev/null && exit 0
2422
3735 fi
3836 git add " $SETTINGS_FULLPATH "
3937fi
40-
41- truncate -s 0 " $CHECKSUM_FULLPATH "
42- cd $PROJECT_FULLPATH && for i in $( find . -name " *.py" -o -name " *.xml" -o -name " *_" -o -type f -regex " ./[^./]*" | sort) ; do git ls-files $i --error-unmatch & > /dev/null && md5sum $i | stdbuf -i0 -o0 -e0 sed ' s/\.\///' >> " $CHECKSUM_FULLPATH " ; git add " $CHECKSUM_FULLPATH " ; done
Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ Links
177177EOF
178178sed -i " s/^VERSION =.*/VERSION = \" $VERSION \" /g" sqlmap/lib/core/settings.py
179179sed -i " s/^TYPE =.*/TYPE = \" $TYPE \" /g" sqlmap/lib/core/settings.py
180- sed -i " s/.*lib\/core\/settings\.py/` md5sum sqlmap/lib/core/settings.py | cut -d ' ' -f 1` lib\/core\/settings\.py/g" sqlmap/txt/checksum.md5
181180for file in $( find sqlmap -type f | grep -v -E " \.(git|yml)" ) ; do echo include $file >> MANIFEST.in; done
182181python setup.py sdist upload
183182rm -rf $TMP_DIR
Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.3.3.42 "
22+ VERSION = "1.3.3.43 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments