2 # $Id: pkwk_chmod.sh,v 1.4 2011/01/16 14:50:37 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 o+r *.php */*.php
11 # chmod o+rx lib skin plugin image image/face doc
12 # chmod 777 attach backup cache counter diff trackback wiki* 2>/dev/null
13 # chmod 666 wiki*/*.txt cache/*.dat cache/*.ref cache/*.rel 2>/dev/null
18 test -d "$dir" || return 1
31 ls -d 'cache' 'counter' 'attach' wiki.[a-z][a-z] 2>/dev/null | while read dir; do
41 # Unfortunately attach/attached-files have no suffix
42 # that should be .bin or someting
43 find "$dir" -type f -name '*.log'
45 backup ) find "$dir" -type f \( -name '*.txt' -or -name '*.gz' \) ;;
46 cache ) find "$dir" -type f \( -name '*.dat' -or -name '*.re[fl]' \) ;;
47 * ) find "$dir" -type f -name '*.txt' ;;
54 if ! check_dir ` list_dir ` ; then
55 echo 'ERROR: Seems not pukiwiki DATA_HOME'
60 list_dir | while read dir; do
62 list_files "$dir" | while read file; do