projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ac596
)
moving away from regenning wiki on every upgrade, added a variable to
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Apr 2006 21:11:11 +0000
(21:11 +0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Apr 2006 21:11:11 +0000
(21:11 +0000)
control when to do it
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index e716fb2f58ccbcc823b9ab6cc909aeccf2e56475..e84955daf62ba5b3d6921259765436b82d2baa19 100755
(executable)
--- 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