# HG changeset patch # User Paul Boddie # Date 1279235849 -7200 # Node ID 819e4e04622da0705664b7d50025ee5466c14861 # Parent e9b698b77ff3b8ecd5b736e538b0a7c770645677 Added a simple theme installation script. diff -r e9b698b77ff3 -r 819e4e04622d insttheme --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/insttheme Fri Jul 16 01:17:29 2010 +0200 @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ ! $1 ]] ; then + echo "Please specify the location of the templates directory such as" + echo "/var/lib/python-support/python2.5/mercurial/templates or" + echo "/usr/lib/python2.5/site-packages/mercurial/templates" + echo "This should contain a static directory." + exit +fi + +mkdir -p $1/mercurialwiki +cp themes/mercurialwiki/map $1/mercurialwiki/ +cp themes/mercurialwiki/*.tmpl $1/mercurialwiki/ +cp themes/mercurialwiki/static/*.css $1/mercurialwiki/static/ +cp themes/mercurialwiki/static/*.png $1/mercurialwiki/static/