From 9143ab784239305e7fe7cfa43279794bc46137a8 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Fri, 2 Jun 2017 11:04:18 +0200 Subject: [PATCH] Formatiing of Version Information in README.md --- README.md | 6 ++---- travisCI/modify-readme.sh | 16 +++++++--------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 373223835..d571c295f 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,9 @@ # 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 -### Version Information # ******************************************** -> Version: V3.2017.06.533 -******************************************** -### 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: diff --git a/travisCI/modify-readme.sh b/travisCI/modify-readme.sh index 50dc24299..113d66cd3 100755 --- a/travisCI/modify-readme.sh +++ b/travisCI/modify-readme.sh @@ -14,8 +14,8 @@ _inputdbA=/tmp/lastupdated.db _tmpnginxA=tmpnginxA # Start and End Strings to Search for to do inserts into template -_startmarker="### Version Information #" -_endmarker="### Version Information ##" +_startmarker="********************************************" +_endmarker="--------------------------------------------" # PRINT VERSION INFORMATION INTO README.md # **************************************** @@ -25,18 +25,18 @@ now="$(date)" end=$(date +%s.%N) echo $_startmarker >> $_tmpnginxA runtime=$(python -c "print(${end} - ${start})") -printf "********************************************\n> Version: "$MY_GIT_TAG"\n********************************************\n" >> $_tmpnginxA +printf "> Version: "$MY_GIT_TAG"" >> $_tmpnginxA echo $_endmarker >> $_tmpnginxA IFS=$LASTUPDATEIFS mv $_tmpnginxA $_inputdbA ed -s $_inputdbA<<\IN -1,/### Version Information #/d -/### Version Information ##/,$d +1,/********************************************/d +/--------------------------------------------/,$d ,d .r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md -/### Version Information #/x +/********************************************/x .t. -.,/### Version Information ##/-d +.,/--------------------------------------------/-d #,p #,p used to print output replaced with w below to write w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md @@ -47,5 +47,3 @@ rm $_inputdbA exit 0 -############################################ -******************************************** \ No newline at end of file