mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 19:20:16 +00:00
Write Build / Version Number into README.md
This commit is contained in:
parent
75522e9cd7
commit
86183546be
2 changed files with 24 additions and 14 deletions
|
@ -8,8 +8,13 @@
|
||||||
# Nginx Bad Bot and User-Agent Blocker, Spam Referrer Blocker, Anti DDOS, Bad IP Blocker and Wordpress Theme Detector Blocker
|
# Nginx Bad Bot and User-Agent Blocker, Spam Referrer Blocker, Anti DDOS, Bad IP Blocker and Wordpress Theme Detector Blocker
|
||||||
##### The Ultimate Nginx Bad Bot, User-Agent, Spam Referrer Blocker, Adware, Malware and Ransomware Blocker, Clickjacking Blocker, Click Re-Directing Blocker, SEO Companies and Bad IP Blocker with Anti DDOS System, Nginx Rate Limiting and Wordpress Theme Detector Blocking
|
##### The Ultimate Nginx Bad Bot, User-Agent, Spam Referrer Blocker, Adware, Malware and Ransomware Blocker, Clickjacking Blocker, Click Re-Directing Blocker, SEO Companies and Bad IP Blocker with Anti DDOS System, Nginx Rate Limiting and Wordpress Theme Detector Blocking
|
||||||
|
|
||||||
### VERSION:
|
### Version Information #
|
||||||
#>>># Version 3.2017.07 #<<<#
|
############################################
|
||||||
|
### Version: V3.2017.06
|
||||||
|
### Updated: Fri Jun 2 10:34:18 SAST 2017
|
||||||
|
### Generated In: 0.0032639503479 seconds
|
||||||
|
############################################
|
||||||
|
### Version Information ##
|
||||||
|
|
||||||
If this helps you [why not buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BKF9XT6WHATLG):beer:
|
If this helps you [why not buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BKF9XT6WHATLG):beer:
|
||||||
|
|
||||||
|
|
|
@ -4,35 +4,39 @@
|
||||||
# Copyright: Mitchell Krog - https://github.com/mitchellkrogza
|
# Copyright: Mitchell Krog - https://github.com/mitchellkrogza
|
||||||
|
|
||||||
# Start time of script generation
|
# Start time of script generation
|
||||||
|
start=$(date +%s.%N)
|
||||||
versionyear=$(date +%Y)
|
versionyear=$(date +%Y)
|
||||||
versionmonth=$(date +%m)
|
versionmonth=$(date +%m)
|
||||||
MY_GIT_TAG=V3.$versionyear.$versionmonth.$TRAVIS_BUILD_NUMBER
|
MY_GIT_TAG=V3.$versionyear.$versionmonth.$TRAVIS_BUILD_NUMBER
|
||||||
|
|
||||||
# Set Temporary database and variables
|
# Temporary database files we create
|
||||||
_inputdbA=/tmp/lastupdated.db
|
_inputdbA=/tmp/lastupdated.db
|
||||||
_tmpnginxA=tmpnginxA
|
_tmpnginxA=tmpnginxA
|
||||||
|
|
||||||
# Start and End Strings to Search for to do inserts into template
|
# Start and End Strings to Search for to do inserts into template
|
||||||
_startmarker="#>>>#"
|
_startmarker="### Version Information #"
|
||||||
_endmarker="#<<<#"
|
_endmarker="### Version Information ##"
|
||||||
|
|
||||||
# PRINT VERSION INFORMATION INTO GLOBALBLACKLIST FILE 1
|
# PRINT VERSION INFORMATION INTO README.md
|
||||||
# *****************************************************
|
# ****************************************
|
||||||
VERSIONUMBER=$IFS
|
LASTUPDATEIFS=$IFS
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
now="$(date)"
|
||||||
|
end=$(date +%s.%N)
|
||||||
echo $_startmarker >> $_tmpnginxA
|
echo $_startmarker >> $_tmpnginxA
|
||||||
printf " "$MY_GIT_TAG "" >> $_tmpnginxA
|
runtime=$(python -c "print(${end} - ${start})")
|
||||||
|
printf "############################################\n### Version: "$MY_GIT_TAG"\n### Updated: "$now"\n### Generated In: "$runtime" seconds\n############################################\n" >> $_tmpnginxA
|
||||||
echo $_endmarker >> $_tmpnginxA
|
echo $_endmarker >> $_tmpnginxA
|
||||||
IFS=$VERSIONUMBER
|
IFS=$LASTUPDATEIFS
|
||||||
mv $_tmpnginxA $_inputdbA
|
mv $_tmpnginxA $_inputdbA
|
||||||
ed -s $_inputdbA<<\IN
|
ed -s $_inputdbA<<\IN
|
||||||
1,/#>>>#/d
|
1,/### Version Information #/d
|
||||||
/#<<<#/,$d
|
/### Version Information ##/,$d
|
||||||
,d
|
,d
|
||||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
/#>>>#/x
|
/### Version Information #/x
|
||||||
.t.
|
.t.
|
||||||
.,/#<<<#/-d
|
.,/### Version Information ##/-d
|
||||||
#,p
|
#,p
|
||||||
#,p used to print output replaced with w below to write
|
#,p used to print output replaced with w below to write
|
||||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
|
@ -40,4 +44,5 @@ q
|
||||||
IN
|
IN
|
||||||
rm $_inputdbA
|
rm $_inputdbA
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue