- added a new script that sets svn properties for lng and sh files

This commit is contained in:
Mark Vejvoda 2013-06-19 17:33:35 +00:00
parent d7eaeaead5
commit 00eb9a9561

17
mk/linux/mg_setsvnprops.sh Executable file
View File

@ -0,0 +1,17 @@
#! /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))"
# lng files
#find ${CURRENTDIR}/../../data/glest_game/ -name "*\.lng" -exec echo {} \;
find ${CURRENTDIR}/../../data/glest_game/ -name "*\.lng" -exec svn propset svn:mime-type text/plain {} \;
find ${CURRENTDIR}/../../data/glest_game/ -name "*\.lng" -exec svn propset svn:eol-style native {} \;
# scripts
find ${CURRENTDIR}/ -name "*\.sh" -exec svn propset svn:mime-type text/plain {} \;
find ${CURRENTDIR}/ -name "*\.sh" -exec svn propset svn:eol-style native {} \;