1 #!/bin/bash 2 3 if [[ ! $2 ]] ; then 4 echo "Please specify a directory such as ../mywiki or /tmp/mywiki along" 5 echo "with the name of the theme into which the EventAggregator styles will be" 6 echo "copied." 7 echo 8 echo "The specified directory should be the root of your Wiki resources" 9 echo "and contain the different theme resources directories, such as classic," 10 echo "modern, hypermodern, and so on, each containing css and img directories." 11 echo 12 echo "The specified directory may be called htdocs, but sometimes it is called" 13 echo "something like moin_static160." 14 echo 15 echo "In more recent versions of MoinMoin, the htdocs directory is found within" 16 echo "a shared directory such as ../moin/share/moin or /tmp/moin/share/moin," 17 echo "and you should specify the htdocs directory in this location instead." 18 echo "For example: ../moin/share/moin/htdocs" 19 echo 20 echo "You may wish to uncomment and modify the chown command in this script." 21 exit 22 fi 23 24 cp -i css/*.css $1/$2/css/ 25 #chown www-data: $1/$2/css/ 26 echo "Don't forget to update the screen.css file:" 27 echo $1/$2/css/screen.css 28 echo 29 echo "See the README.txt file for details."