]> sipb.mit.edu Git - ikiwiki.git/blobdiff - debian/postinst
* Smarter behavior when creating a page and a page of the same name (but
[ikiwiki.git] / debian / postinst
index e716fb2f58ccbcc823b9ab6cc909aeccf2e56475..b9630b5254d857429cdc16ee3f4103b56bc3a587 100755 (executable)
@@ -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