2013-06-19 19:33:35 +02:00
|
|
|
#! /bin/sh
|
|
|
|
# Use this script to set data files svn properties quickly
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
|
|
# Copyright (c) 2013 Mark Vejvoda under GNU GPL v3.0+
|
|
|
|
|
|
|
|
CURRENTDIR="$(dirname $(readlink -f $0))"
|
|
|
|
|
2013-11-13 08:56:19 +01:00
|
|
|
# cpp /.c / .h files
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.cpp' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.cpp' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.c' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.c' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.h' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/ -iname '*.h' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|
2013-06-21 20:02:31 +02:00
|
|
|
# LNG files
|
2013-06-19 19:33:35 +02:00
|
|
|
#find ${CURRENTDIR}/../../data/glest_game/ -name "*\.lng" -exec echo {} \;
|
2013-06-21 20:02:31 +02:00
|
|
|
find ${CURRENTDIR}/../../data/glest_game/ -iname '*.lng' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../data/glest_game/ -iname '*.lng' -exec svn propset svn:eol-style native '{}' \;
|
2013-06-19 19:33:35 +02:00
|
|
|
|
2013-06-21 20:02:31 +02:00
|
|
|
# XML files
|
|
|
|
find ${CURRENTDIR}/../../data/glest_game/ -iname '*.xml' -exec svn propset svn:mime-type application/xml '{}' \;
|
|
|
|
#find ${CURRENTDIR}/../../data/glest_game/ -iname '*.xml' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|
|
|
|
# shell scripts
|
|
|
|
find ${CURRENTDIR}/ -iname '*.sh' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/ -iname '*.sh' -exec svn propset svn:eol-style native '{}' \;
|
2013-06-19 19:33:35 +02:00
|
|
|
|
2013-10-31 01:57:36 +01:00
|
|
|
# php scripts
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.php' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.php' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|
|
|
|
# sql scripts
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.sql' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.sql' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|
2013-10-31 10:49:42 +01:00
|
|
|
# javascript scripts
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.js' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.js' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|
|
|
|
# css scripts
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.css' -exec svn propset svn:mime-type text/plain '{}' \;
|
|
|
|
find ${CURRENTDIR}/../../source/masterserver -iname '*.css' -exec svn propset svn:eol-style native '{}' \;
|
|
|
|
|