#!/bin/bash # # Build path for the latest git changes of the current release. mkdir tmp cd tmp # Unpack the original release echo -n "Extract ./0.11.2.tar.gz" tar xfz ../0.11.2.tar.gz ( cd fail2ban-0.11.2 rm -rf .coveragerc .git* .mailmap .project .pylintrc .travis.yml ) echo # Gen and clean the correct git branch git clone -b 0.11 https://github.com/fail2ban/fail2ban.git ( cd fail2ban rm -rf .coveragerc .git* .mailmap .project .pylintrc .travis.yml ) # Make the patch diff -u -r -N fail2ban-0.11.2 fail2ban > ../git-update.patch cd .. rm -rf tmp