* Add ikiwiki-mass-rebuild script, ripped out of the postinst.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 5 May 2006 20:48:20 +0000 (20:48 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 5 May 2006 20:48:20 +0000 (20:48 +0000)
* Add some new config items to the estseek.conf template, which are needed
  by hyperestraier 1.2.3.

12 files changed:
Makefile.PL
debian/NEWS
debian/README.Debian
debian/changelog
debian/postinst
debian/rules
debian/wikilist [deleted file]
doc/ikiwiki-mass-rebuild.mdwn [new file with mode: 0644]
ikiwiki-mass-rebuild [new file with mode: 0755]
mdwn2man
templates/estseek.conf
wikilist [new file with mode: 0644]

index 43b6bef095e36759386dfe5cb0b398a5642f9fc7..aac6946baba3bc6de2dadf97146aad80b2aefddb 100755 (executable)
@@ -17,7 +17,8 @@ extra_build:
                --exclude=/discussion --no-discussion \
                --plugin=brokenlinks --plugin=pagecount \
                --plugin=orphans --plugin=haiku
-       ./mdwn2man doc/usage.mdwn > ikiwiki.man
+       ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
+       ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
                
 extra_clean:
        rm -rf html doc/.ikiwiki
@@ -32,6 +33,12 @@ extra_install:
 
        install -d $(PREFIX)/share/man/man1
        install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
+       
+       install -d $(PREFIX)/share/man/man8
+       install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
+       
+       install -d $(PREFIX)/sbin
+       install ikiwiki-mass-rebuild $(PREFIX)/sbin
 }
 }
 
index 5bb107519eb93cfa82894aa04fc007969def6cf6..565ca21fca41d9d729e7f834efef770e99de4791 100644 (file)
@@ -1,5 +1,7 @@
 ikiwiki (1.1) unstable; urgency=low
 
+  There have been several configuration changes in this release of ikiwiki:
+
   The --svn and --no-svn switches are removed, instead you should use
    --rcs=svn or --no-rcs. ikiwiki setup files that set svn => 1 should
   be changed to set rcs => "svn"; if your setup file sets svn => 0
@@ -7,15 +9,21 @@ ikiwiki (1.1) unstable; urgency=low
 
   The --hyperestraier switch is gone too. To enable searching, turn on the
   search plugin, by passing --plugin=search or through the plugin setting in
-  the config file.
+  the setup file.
 
   The --sanitize and --no-sanitize switches are also gone, replaced with the
   htmlscrubber plugin. This plugin is enabled by default, to disable it,
   use --disable-plugin=htmlscrubber, or modify the plugin setting in the
-  config file.
+  setup file.
+
+  If your wiki is configured with a setup file, you will need to add a line
+  to enable Discussion links at the top of pages:
+  discussion => 1,
+  Discussion pages are enabled by default, but old setup files won't enable
+  them unless you add tat line.
 
   You will need to rebuild your wiki when upgrading to this version.
   If you listed your wiki in /etc/ikiwiki/wikilist this will be done
-  automatically.
+  automatically when the Debian package is upgraded.
 
  -- Joey Hess <joeyh@debian.org>  Tue,  2 May 2006 14:13:59 -0400
index 8094c1b7e680cf83d7a3f0697e4fd69e2ae57d20..7791b9a7f1ef18bd65caf84cad7e8b35bb9a439b 100644 (file)
@@ -3,7 +3,8 @@ when upgrading to a new version of ikiwiki. If you have a lot of different
 wikis on a system, this can be a pain to do by hand, and it's a good idea
 to automate it anyway.
 
-This Debian package of ikiwiki supports rebuilding wikis on upgrade. The
-file /etc/ikiwiki/wikilist lists the setup files of wikis to rebuild, as
-well as the user who owns the wiki. Edit this file and add any wikis you
+This Debian package of ikiwiki supports rebuilding wikis on upgrade. It
+will run ikiwiki-mass-rebuild if necessary when upgraded. The file
+/etc/ikiwiki/wikilist lists the setup files of wikis to rebuild, as wel
+l as the user who owns the wiki. Edit this file and add any wikis you 
 set up.
index 0d86597fcadb273d553d48ffd09eff9a40787acb..b3d70190caf8b647e71a31c078636022cbe0fc33 100644 (file)
@@ -46,8 +46,11 @@ ikiwiki (1.1) UNRELEASED; urgency=low
   * Removed --sanitize and --no-sanitize, replaced with --plugin htmlscrubber
     and --disable-plugin htmlscrubber.
   * Allow discussion links on pages to be turned off with --no-discussion.
+  * Add ikiwiki-mass-rebuild script, ripped out of the postinst.
+  * Add some new config items to the estseek.conf template, which are needed
+    by hyperestraier 1.2.3.
 
- -- Joey Hess <joeyh@debian.org>  Fri,  5 May 2006 14:03:54 -0400
+ -- Joey Hess <joeyh@debian.org>  Fri,  5 May 2006 16:23:03 -0400
 
 ikiwiki (1.0) unstable; urgency=low
 
index b9630b5254d857429cdc16ee3f4103b56bc3a587..76d8263575d1af6735cdf883baac2d7e14d37628 100755 (executable)
@@ -6,28 +6,7 @@ set -e
 # rebuilding all wikis.
 firstcompat=1.1
 
-wikilist=/etc/ikiwiki/wikilist
-
-processline () {
-       user="$1"
-       setup="$2"
-       
-       if [ -z "$user" ] || [ -z "$setup" ]; then
-               echo "parse failure in /etc/ikiwiki/wikilist, line: '$user $setup'" >&2
-               exit 1
-       fi
-       
-       if [ ! -f "$setup" ]; then
-               echo "warning: $setup specified in /etc/ikiwiki/wikilist does not exist, skipping" >&2
-       else
-               echo "Rebuilding $setup as user $user ..."
-               su "$user" -c "ikiwiki -setup $setup"
-       fi
-}
-
-if [ "$1" = configure ] && [ -e $wikilist ] && \
+if [ "$1" = configure ] && \
    dpkg --compare-versions "$2" lt "$firstcompat"; then
-       grep -v '^#' $wikilist | grep -v '^$' | while read line; do 
-               processline $line
-       done
+       ikiwiki-mass-rebuild
 fi
index df8390f9426cdfeff1d63ec8e6a7295eb9743761..6b5a0377e85b7e7fb2d5e50eb90698aeb8264ecb 100755 (executable)
@@ -24,7 +24,7 @@ binary-indep: build
        dh_clean -k
        $(MAKE) pure_install INSTALLDIRS=vendor \
                PREFIX=$(shell pwd)/debian/ikiwiki/$(shell perl -MConfig -e 'print $$Config{prefix}')
-       dh_install debian/wikilist etc/ikiwiki
+       dh_install wikilist etc
        dh_installdocs html
        dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
        dh_installchangelogs
diff --git a/debian/wikilist b/debian/wikilist
deleted file mode 100644 (file)
index 4e7c81f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file is used by the Debian package of ikiwiki to rebuild the listed
-# wikis when it is upgraded. The postinst script su's to the listed user
-# and then runs ikiwiki -setup on the specified ikiwiki setup file.
-
-#joey /home/joey/.ikiwiki/ikiwiki.setup
diff --git a/doc/ikiwiki-mass-rebuild.mdwn b/doc/ikiwiki-mass-rebuild.mdwn
new file mode 100644 (file)
index 0000000..5c2cf40
--- /dev/null
@@ -0,0 +1,21 @@
+# NAME
+
+ikiwiki-mass-rebuild - rebuild all ikiwiki wikis on a system
+
+# SYNOPSIS
+
+ikiwiki-mass-rebuild
+
+# DESCRIPTION
+
+`ikiwiki-mass-rebuild` can be used to force a rebuild of all the wikis
+on a system. You will need to list the wikis it shuld build in the file
+/etc/ikiwiki/wikilist, which has the format:
+
+user /path/to/wiki
+
+# AUTHOR
+
+Joey Hess <joey@kitenet.net>
+
+Warning: this page is automatically made into ikiwiki-mass-rebuild's man page, edit with care
diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild
new file mode 100755 (executable)
index 0000000..daba2ca
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -e
+
+wikilist=/etc/ikiwiki/wikilist
+
+processline () {
+       user="$1"
+       setup="$2"
+       
+       if [ -z "$user" ] || [ -z "$setup" ]; then
+               echo "parse failure in /etc/ikiwiki/wikilist, line: '$user $setup'" >&2
+               exit 1
+       fi
+       
+       if [ ! -f "$setup" ]; then
+               echo "warning: $setup specified in /etc/ikiwiki/wikilist does not exist, skipping" >&2
+       else
+               echo "Rebuilding $setup as user $user ..."
+               su "$user" -c "ikiwiki -setup $setup"
+       fi
+}
+
+if [ -e "$wikilist" ]; then
+       grep -v '^#' $wikilist | grep -v '^$' | while read line; do 
+               processline $line
+       done
+fi
index 57c41c86590042f9f6a8a89a64ec569fd07348ba..8c70c87c157217f6dc108b092e7b21567a658265 100755 (executable)
--- a/mdwn2man
+++ b/mdwn2man
@@ -1,7 +1,10 @@
 #!/usr/bin/perl
 # Warning: hack
 
-print ".TH ikiwiki 1\n";
+my $prog=shift;
+my $section=shift;
+
+print ".TH $prog $section\n";
 
 while (<>) {
        s{(\\?)\[\[([^\s\]]+)\]\]}{$1 ? "[[$2]]" : $2}eg;
index 91e144d7802e1ecde532534304d3bbfb0252530d..599a3cd0bd52c68d27126fedb388f6d12b84d7ba 100644 (file)
@@ -17,5 +17,9 @@ scancheck: false
 smplphrase: true
 candetail: true
 smlrvnum: 0
+smlrtune: 16 1024 4096
 clipview: 2
+relkeynum: 0
 spcache:
+wildmax: 256
+qxpndcmd:
diff --git a/wikilist b/wikilist
new file mode 100644 (file)
index 0000000..f047b67
--- /dev/null
+++ b/wikilist
@@ -0,0 +1,8 @@
+# This file is used by ikiwiki-mass-rebuild script rebuild the listed
+# wikis. Run this script when upgrading ikiwiki to an incompatible new
+# version that requires rebuilding everything.
+#
+# ikiwiki-mass-rebuild su's to the listed user and then runs ikiwiki -setup
+# on the specified ikiwiki setup file.
+
+#joey /home/joey/.ikiwiki/ikiwiki.setup