Commit Graph

17435 Commits (782ad9f4c3a7802f9bd843fa5864e413d587c2b9)

Author SHA1 Message Date
joey b645dc5a41 Getopt::Long is a huge, heavy perl module. So why use it?
This {gross,amazing} hack makes all wrapped uses of ikiwiki forgo any
option parsing at all. Options come in preparses via an env var from the
wrapper. As a bonus, Wrapper.pm no longer needs to be updated when command
line options are added to the program. Load time is sped up by around 10%.

ikiwikiwrap --params is no longer supported by this change. You will need
to rebuild your wrappers to take advantage of it.
2006-03-23 07:37:16 +00:00
joey 6c8cf5dd57 Major code reoganisation, splitting up the single big file. The two goals
kept in mind during this are a) to reduce load time for common cases like
cgi and post-commit and b) make the code easier to navigate.

This also modularises RCS support to the extent that it should be possible
to drop in a module for some RCS other than svn, add a switch for it, and
it pretty much just work.

High chance I missed an edge case that breaks something, this is only
barely tested at this point.
2006-03-23 06:51:15 +00:00
joey 7b0346bf82 remove accidental makemaker cruft 2006-03-23 05:21:17 +00:00
joey 03781baeb0 underlays are *hard*. feh 2006-03-23 04:44:32 +00:00
joey 62f1f9732b found & fixed another symlink attack 2006-03-23 04:33:35 +00:00
joey 2eb5893ce7 fix config restoration after wrapper gen 2006-03-23 04:07:58 +00:00
joey c0b1bfd0cd -s == --setup 2006-03-23 04:05:26 +00:00
joey 8978c1d959 fix oops in %config handling 2006-03-23 04:02:19 +00:00
joey e4d9da55d9 At Branden's request, clean up the hardcoded ".ikiwiki" everywhere, and add
checkoptions() that can be used to set defaults for this and other options
based on existing options.

Also involved some cleanups to how gen_wrapper is used.
2006-03-23 04:01:02 +00:00
joey 0b1828f694 *warning* any wrappers built with a previous version of ikiwiki need to be
rebuilt

This changes ikiwiki's syntax to require only 2 parameters (source and
dest) and not three. The templatedir parameter is now an optional
--templatedir.
2006-03-23 02:53:03 +00:00
joey 483f61d228 improve 2006-03-23 02:31:51 +00:00
joey 509479f236 improve 2006-03-23 02:30:51 +00:00
joey bb04b36cc9 Fix a bad use of implicit return for admin-less wikis. I got lucky.. 2006-03-23 02:03:48 +00:00
joey def0274793 add another example 2006-03-23 01:49:55 +00:00
www-data b73debadba web commit by joey 2006-03-23 01:48:01 +00:00
joey 325d5c791f added adminuser settings, globlist support, and used this to implement page
locking
2006-03-23 01:40:46 +00:00
www-data 33b7f3444c web commit by joey 2006-03-22 19:04:41 +00:00
joey 5fe80a6371 prefs page implemented 2006-03-21 02:38:17 +00:00
joey b7d3a12c5c note that format of historyurl changed too.. 2006-03-21 01:27:05 +00:00
www-data 8ca32b69a6 web commit by joey 2006-03-21 01:21:58 +00:00
www-data c9594a0921 web commit by joey 2006-03-21 01:20:09 +00:00
joey 773731743d add --diffurl, if set RecentChanges has links to svn diffs 2006-03-21 01:18:01 +00:00
joey b7c86dda2f added last changed timestamp for pages 2006-03-20 19:56:37 +00:00
www-data 3a6d0d3a77 web commit by joey 2006-03-20 18:27:13 +00:00
joey 0751429ba0 add 2006-03-20 08:04:39 +00:00
joey 1dac1cfc01 fix subpage creation 2006-03-20 05:51:22 +00:00
joey 5cc3d4e4a3 add 2006-03-20 05:11:41 +00:00
joey ba335c94c7 fix setup file error
improve svn log regexp to deal with file copies/moves
2006-03-20 05:09:30 +00:00
joey d1cef7a6ab ugh, use subpages for discussion as a special case 2006-03-19 23:56:50 +00:00
joey 5604901eac switch default new page location to not be a subpage 2006-03-19 22:57:24 +00:00
joey 2f190b3aeb don't lock before setup 2006-03-19 22:51:07 +00:00
www-data ae0475367c web commit by joey 2006-03-19 22:01:43 +00:00
www-data cc5248c5f6 web commit by joey 2006-03-19 22:00:58 +00:00
www-data 1d8e719e6a web commit by joey 2006-03-19 22:00:23 +00:00
www-data f6cf982152 web commit by joey 2006-03-19 21:59:09 +00:00
www-data a80f0c6e4f web commit by joey 2006-03-19 21:58:42 +00:00
www-data 3eb389ca61 web commit by joey 2006-03-19 21:56:42 +00:00
joey f0ff1625e0 foo 2006-03-19 21:54:42 +00:00
www-data febe494a96 web commit by joey 2006-03-19 21:52:44 +00:00
joey f0d7a5ee1a basewiki integration 2006-03-19 21:51:39 +00:00
www-data 470c46c794 web commit by joey 2006-03-19 21:49:20 +00:00
joey e04018ebc1 added basewiki 2006-03-19 21:44:15 +00:00
joey 317c0275d8 mispaste 2006-03-19 21:42:36 +00:00
joey 1d82816082 link to helponformatting from the edit page 2006-03-19 21:31:11 +00:00
www-data c47d165a33 web commit by joey 2006-03-19 21:30:21 +00:00
joey f24b47d2ea add helponformatting page 2006-03-19 21:25:47 +00:00
www-data 93f8af972b web commit by joey 2006-03-19 20:49:26 +00:00
www-data a4fb4c301f web commit by joey 2006-03-19 20:43:23 +00:00
www-data a53033e3dd web commit by joey 2006-03-19 20:42:12 +00:00
www-data 8db7e3eca9 web commit by joey: conflict and merge is done! 2006-03-19 20:36:50 +00:00