mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 02:29:58 +00:00
Add Version Information to Other Readme Files
This commit is contained in:
parent
c0eb29a8a8
commit
6422bfec05
5 changed files with 68 additions and 17 deletions
|
@ -3,7 +3,12 @@
|
|||
|
||||
##### Created by: https://github.com/mitchellkrogza
|
||||
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||
### Version 3.2017.07
|
||||
|
||||
##### Version Information #
|
||||
********************************************
|
||||
# Version: V3.2017.06.540
|
||||
********************************************
|
||||
##### Version Information ##
|
||||
|
||||
## Update Notification System
|
||||
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
|
||||
##### Created by: https://github.com/mitchellkrogza
|
||||
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||
### Version 3.2017.07
|
||||
|
||||
##### Version Information #
|
||||
********************************************
|
||||
# Version: V3.2017.06.540
|
||||
********************************************
|
||||
##### Version Information ##
|
||||
|
||||
## Update Notification System
|
||||
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"name": "mitchellkrogza/nginx-ultimate-bad-bot-blocker",
|
||||
"description": "Travis CI Testing for the Nginx Ultimate Bad Bot Blocker",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Mitchell Krog",
|
||||
"email": "mitchellkrog@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"lib-curl": "*"
|
||||
}
|
||||
}
|
|
@ -27,6 +27,8 @@ sudo chown -R travis:travis $TRAVIS_BUILD_DIR/*
|
|||
|
||||
# Add the modified file to the and commit it
|
||||
git add $TRAVIS_BUILD_DIR/README.md
|
||||
git add $TRAVIS_BUILD_DIR/AUTO-CONFIGURATION.md
|
||||
git add $TRAVIS_BUILD_DIR/MANUAL-CONFIGURATION.md
|
||||
git add $TRAVIS_BUILD_DIR/conf.d/globalblacklist.conf
|
||||
git add $TRAVIS_BUILD_DIR/Engintron_for_cPanel_WHM_Configuration_Example/etc/nginx/conf.d/globalblacklist.conf
|
||||
git commit -am "V3.$YEAR.$MONTH.$TRAVIS_BUILD_NUMBER [ci skip]"
|
||||
|
|
|
@ -44,5 +44,59 @@ q
|
|||
IN
|
||||
rm $_inputdbA
|
||||
|
||||
# PRINT VERSION INFORMATION INTO AUTO-CONFIGURATION.md
|
||||
# ****************************************************
|
||||
LASTUPDATEIFS2=$IFS
|
||||
IFS=$'\n'
|
||||
now="$(date)"
|
||||
end=$(date +%s.%N)
|
||||
echo $_startmarker >> $_tmpnginxA
|
||||
runtime=$(python -c "print(${end} - ${start})")
|
||||
printf "********************************************\n# Version: "$MY_GIT_TAG"\n********************************************\n" >> $_tmpnginxA
|
||||
echo $_endmarker >> $_tmpnginxA
|
||||
IFS=$LASTUPDATEIFS2
|
||||
mv $_tmpnginxA $_inputdbA
|
||||
ed -s $_inputdbA<<\IN
|
||||
1,/##### Version Information #/d
|
||||
/##### Version Information ##/,$d
|
||||
,d
|
||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
||||
/##### Version Information #/x
|
||||
.t.
|
||||
.,/##### Version Information ##/-d
|
||||
#,p
|
||||
#,p used to print output replaced with w below to write
|
||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
||||
q
|
||||
IN
|
||||
rm $_inputdbA
|
||||
|
||||
# PRINT VERSION INFORMATION INTO MANUAL-CONFIGURATION.md
|
||||
# ******************************************************
|
||||
LASTUPDATEIFS3=$IFS
|
||||
IFS=$'\n'
|
||||
now="$(date)"
|
||||
end=$(date +%s.%N)
|
||||
echo $_startmarker >> $_tmpnginxA
|
||||
runtime=$(python -c "print(${end} - ${start})")
|
||||
printf "********************************************\n# Version: "$MY_GIT_TAG"\n********************************************\n" >> $_tmpnginxA
|
||||
echo $_endmarker >> $_tmpnginxA
|
||||
IFS=$LASTUPDATEIFS3
|
||||
mv $_tmpnginxA $_inputdbA
|
||||
ed -s $_inputdbA<<\IN
|
||||
1,/##### Version Information #/d
|
||||
/##### Version Information ##/,$d
|
||||
,d
|
||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
||||
/##### Version Information #/x
|
||||
.t.
|
||||
.,/##### Version Information ##/-d
|
||||
#,p
|
||||
#,p used to print output replaced with w below to write
|
||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
||||
q
|
||||
IN
|
||||
rm $_inputdbA
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue