aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-04-04 21:11:11 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-04-04 21:11:11 +0000
commit35e72f56c1b42ca13abd5f9af1924495a173d1ec (patch)
tree49d8282095a4993fe2250edf2a3e2a7cba2b7739 /debian/postinst
parentf0ac5963b6c21c75f26cb7476ee91dd7f56837e3 (diff)
downloadikiwiki-35e72f56c1b42ca13abd5f9af1924495a173d1ec.tar
ikiwiki-35e72f56c1b42ca13abd5f9af1924495a173d1ec.tar.gz
moving away from regenning wiki on every upgrade, added a variable to
control when to do it
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/postinst b/debian/postinst
index e716fb2f5..e84955daf 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=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