2 # $Id: pkwk_chmod.sh,v 1.5 2011/01/16 14:54:11 henoheno Exp $
3 # ==========================================================
4 Copyright='(C) 2002-2004 minix-up project, All Rights Reserved'
5 Homepage='http://cvsknit.sourceforge.net/'
6 License='(also revised)BSD Licnese, NO WARRANTY'
10 # chmod 777 attach backup cache counter diff trackback wiki* 2>/dev/null
11 # chmod 666 wiki*/*.txt cache/*.dat cache/*.ref cache/*.rel 2>/dev/null
16 test -d "$dir" || return 1
29 ls -d 'cache' 'counter' 'attach' wiki.[a-z][a-z] 2>/dev/null | while read dir; do
39 # Unfortunately attach/attached-files have no suffix
40 # that should be .bin or someting
41 find "$dir" -type f -name '*.log'
43 backup ) find "$dir" -type f \( -name '*.txt' -or -name '*.gz' \) ;;
44 cache ) find "$dir" -type f \( -name '*.dat' -or -name '*.re[fl]' \) ;;
45 * ) find "$dir" -type f -name '*.txt' ;;
52 if ! check_dir ` list_dir ` ; then
53 echo 'ERROR: Seems not pukiwiki DATA_HOME'
58 list_dir | while read dir; do
60 list_files "$dir" | while read file; do
67 chmod a-x image/b_pukiwiki.official.png
69 chmod o+r *.php */*.php image/*.png image/face/*.png */index.html
70 chmod o+rx lib skin plugin image image/face doc