1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/insttheme Sat May 22 21:47:16 2010 +0200
1.3 @@ -0,0 +1,19 @@
1.4 +#!/bin/bash
1.5 +
1.6 +if [[ ! $1 ]] ; then
1.7 + echo "Please specify a Wiki directory such as ../mywiki or /tmp/mywiki."
1.8 + echo "This should contain a data directory."
1.9 + exit
1.10 +fi
1.11 +
1.12 +if [[ ! $2 ]] ; then
1.13 + echo "Please also specify the directory containing the theme resources,"
1.14 + echo "such as ../moin/share/moin/htdocs."
1.15 + exit
1.16 +fi
1.17 +
1.18 +mkdir -p $2/mercurialwiki
1.19 +cp -ir themes/mercurialwiki/css $2/mercurialwiki
1.20 +cp -r themes/mercurialwiki/img $2/mercurialwiki
1.21 +cp themes/mercurialwiki/mercurialwiki.py $1/data/plugin/theme/
1.22 +chown www-data: $1/data/plugin/theme/mercurialwiki.py