Guten Tag Daniel Shahaf,
am Mittwoch, 28. November 2012 um 21:36 schrieben Sie:

> And that's one of the reasons behind the standard recommendation not to
> access a single working copy from multiple systems, especally windows
> and non-windows.

Thanks, looks like I would really be better off changing some habits.

> You might try 'revert' or 'cleanup'.

I decided for a little script like the following which just adds the
execute permissions for needed files and should be faster.

# Iterator given directories, search files, change permissions:
for dir in "$@"
do
  if [ ! -d "$dir" ]; then
    continue
  fi

  # Recursively find all Perl files which don't have any execute bit set:
  for file in $(find "$dir" -type f -iname "*.pl" ! -perm /111 -exec echo {} \;)
  do
    # svn:executable is a flag which stores * as value:
    if [ "`svn propget svn:executable "$file" 2> /dev/null`" ]; then
      chmod ug+x "$file"
    fi
  done
done

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Reply via email to