1 #!/bin/bash 2 3 if [[ ! $1 ]] ; then 4 echo "Please specify a Wiki directory such as ../mywiki or /tmp/mywiki." 5 echo "This should contain a data directory." 6 exit 7 fi 8 9 if [[ ! $2 ]] ; then 10 echo "Please also specify the directory containing the theme resources," 11 echo "such as ../moin/share/moin/htdocs." 12 exit 13 fi 14 15 mkdir -p $2/mercurialwiki 16 cp -ir themes/mercurialwiki/css $2/mercurialwiki 17 cp -r themes/mercurialwiki/img $2/mercurialwiki 18 cp themes/mercurialwiki/mercurialwiki.py $1/data/plugin/theme/ 19 chown www-data: $1/data/plugin/theme/mercurialwiki.py