moving away from regenning wiki on every upgrade, added a variable to
control when to do itmaster
parent
f0ac5963b6
commit
35e72f56c1
|
@ -2,6 +2,10 @@
|
||||||
set -e
|
set -e
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
# Change this when some incompatible change is made that requires
|
||||||
|
# rebuilding all wikis.
|
||||||
|
firstcompat=0.1
|
||||||
|
|
||||||
wikilist=/etc/ikiwiki/wikilist
|
wikilist=/etc/ikiwiki/wikilist
|
||||||
|
|
||||||
processline () {
|
processline () {
|
||||||
|
@ -21,7 +25,8 @@ processline () {
|
||||||
fi
|
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
|
grep -v '^#' $wikilist | grep -v '^$' | while read line; do
|
||||||
processline $line
|
processline $line
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue