source: branches/version-2_12-dev/svn_propset.sh @ 20219

Revision 20219, 796 bytes checked in by Seasoft, 10 years ago (diff)

r20116 で発生したファイル破損を予防する試み

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3while read PROP
4do
5svn propdel -R $PROP ./
6done <<EOF
7svn:keywords
8svn:executable
9svn:mime-type
10svn:eol-style
11EOF
12
13find . \( -name module -o -name .svn \) -prune -o -type f -print | xargs svn propset 'svn:keywords' 'Id'
14svn propset -R 'svn:executable' *.sh
15svn propset -R 'svn:eol-style' 'LF' ./
16find . -name '*.php' | xargs svn propset -R 'svn:mime-type' 'text/x-httpd-php; charset=UTF-8'
17find . -name '*.tpl' | xargs svn propset -R 'svn:mime-type' 'text/x-smarty-template; charset=UTF-8'
18find . -name '*.gif' | xargs svn propset -R 'svn:mime-type' 'image/gif'
19find . -name '*.jpg' | xargs svn propset -R 'svn:mime-type' 'image/jpeg'
20find . -name '*.png' | xargs svn propset -R 'svn:mime-type' 'image/png'
21find . -name '*.pdf' | xargs svn propset -R 'svn:mime-type' 'application/pdf'
Note: See TracBrowser for help on using the repository browser.