X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/61c909e2f28758baa7089649f2ae2569213e8eac..ecfd8bcae6ce5c5a5005e47030f6fcd9545b81c6:/debian/postinst diff --git a/debian/postinst b/debian/postinst index e716fb2f5..b9630b525 100755 --- a/debian/postinst +++ b/debian/postinst @@ -2,6 +2,10 @@ set -e #DEBHELPER# +# Change this when some incompatible change is made that requires +# rebuilding all wikis. +firstcompat=1.1 + wikilist=/etc/ikiwiki/wikilist processline () { @@ -21,7 +25,8 @@ processline () { fi } -if [ "$1" = configure ] && [ -e $wikilist ]; then +if [ "$1" = configure ] && [ -e $wikilist ] && \ + dpkg --compare-versions "$2" lt "$firstcompat"; then grep -v '^#' $wikilist | grep -v '^$' | while read line; do processline $line done