1 #!/bin/bash 2 3 if [[ ! $1 ]] ; then 4 echo "Please specify the location of the templates directory such as" 5 echo "/var/lib/python-support/python2.5/mercurial/templates or" 6 echo "/usr/lib/python2.5/site-packages/mercurial/templates" 7 echo "This should contain a static directory." 8 exit 9 fi 10 11 mkdir -p $1/mercurialweb 12 cp themes/mercurialweb/map $1/mercurialweb/ 13 cp themes/mercurialweb/*.tmpl $1/mercurialweb/ 14 cp themes/mercurialweb/static/*.css $1/static/ 15 cp themes/mercurialweb/static/*.png $1/static/