MercurialWebTheme

Changeset

22:819e4e04622d
2010-07-16 Paul Boddie raw files shortlog changelog graph Added a simple theme installation script.
insttheme (file)
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/insttheme	Fri Jul 16 01:17:29 2010 +0200
     1.3 @@ -0,0 +1,15 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +if [[ ! $1 ]] ; then
     1.7 +    echo "Please specify the location of the templates directory such as"
     1.8 +    echo "/var/lib/python-support/python2.5/mercurial/templates or"
     1.9 +    echo "/usr/lib/python2.5/site-packages/mercurial/templates"
    1.10 +    echo "This should contain a static directory."
    1.11 +    exit
    1.12 +fi
    1.13 +
    1.14 +mkdir -p $1/mercurialwiki
    1.15 +cp themes/mercurialwiki/map $1/mercurialwiki/
    1.16 +cp themes/mercurialwiki/*.tmpl $1/mercurialwiki/
    1.17 +cp themes/mercurialwiki/static/*.css $1/mercurialwiki/static/
    1.18 +cp themes/mercurialwiki/static/*.png $1/mercurialwiki/static/