OSDN Git Service

Add pack.sh as wrapper script of release.sh
[pukiwiki/pukiwiki_devel.git] / pkwk_chmod.sh
index 681cf07..6b5024b 100755 (executable)
@@ -1,15 +1,12 @@
 #!/bin/sh
-# $Id: pkwk_chmod.sh,v 1.6 2011/01/16 14:56:21 henoheno Exp $
+# $Id: pkwk_chmod.sh,v 1.10 2011/01/24 15:12:51 henoheno Exp $
+#  Chmod script for PukiWiki DATA_HOME
 #  ==========================================================
    Copyright='(C) 2002-2004 minix-up project, All Rights Reserved'
    Homepage='http://cvsknit.sourceforge.net/'
    License='(also revised)BSD Licnese, NO WARRANTY'
 #
 
-
-#    chmod 777 attach backup cache counter diff trackback wiki* 2>/dev/null
-#    chmod 666 wiki*/*.txt cache/*.dat cache/*.ref cache/*.rel  2>/dev/null
-
 check_dir()
 {
   for dir in "$@"; do
@@ -41,7 +38,7 @@ list_files()
          find "$dir" -type f -name '*.log'
       ;;
       backup ) find "$dir" -type f \( -name '*.txt' -or -name '*.gz'     \) ;;
-      cache  ) find "$dir" -type f \( -name '*.dat' -or -name '*.re[fl]' \) ;;
+      cache  ) find "$dir" -type f \( -name '*.dat' -or -name '*.re[fl]' -or -name '*.lock' \) ;;
       *      ) find "$dir" -type f -name '*.txt' ;;
     esac
   done
@@ -64,7 +61,12 @@ list_dir | while read dir; do
 done
 
 # ERRATA
-chmod a-x image/b_pukiwiki.official.png
+chmod a-x INSTALL.txt image/b_pukiwiki.official.png
+
+chmod o+r .ht* */.htaccess *.php */*.php image/*.png image/face/*.png */index.html
+chmod o+rx lib skin plugin image image/face
+
+#chmod o+rx doc
+#chmod o+r *.txt doc/*.txt
 
-chmod o+r *.php */*.php image/*.png image/face/*.png */index.html
-chmod o+rx lib skin plugin image image/face # doc
+# .htaccess