]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
moving away from regenning wiki on every upgrade, added a variable to
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Apr 2006 21:11:11 +0000 (21:11 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Apr 2006 21:11:11 +0000 (21:11 +0000)
control when to do it

debian/postinst

index e716fb2f58ccbcc823b9ab6cc909aeccf2e56475..e84955daf62ba5b3d6921259765436b82d2baa19 100755 (executable)
@@ -2,6 +2,10 @@
 set -e
 #DEBHELPER#
 
+# Change this when some incompatible change is made that requires
+# rebuilding all wikis.
+firstcompat=0.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