paul@6 | 1 | #!/bin/bash |
paul@6 | 2 | |
paul@9 | 3 | if [[ ! $2 ]] ; then |
paul@6 | 4 | echo "Please specify a directory such as ../mywiki or /tmp/mywiki along" |
paul@6 | 5 | echo "with the name of the theme into which the CategoryMenu styles will be" |
paul@6 | 6 | echo "copied." |
paul@11 | 7 | echo |
paul@11 | 8 | echo "The specified directory should be the root of your Wiki resources" |
paul@11 | 9 | echo "and contain the different theme resources directories, such as classic," |
paul@11 | 10 | echo "modern, hypermodern, and so on, each containing css and img directories." |
paul@11 | 11 | echo |
paul@11 | 12 | echo "The specified directory may be called htdocs, but sometimes it is called" |
paul@11 | 13 | echo "something like moin_static160." |
paul@11 | 14 | echo |
paul@11 | 15 | echo "You may wish to uncomment and modify the chown command in this script." |
paul@6 | 16 | exit |
paul@6 | 17 | fi |
paul@6 | 18 | |
paul@11 | 19 | cp css/*.css $1/$2/css/ |
paul@11 | 20 | #chown www-data: $1/htdocs/$2/css/ |