3 # Copyright (C) 2007-2008, Parrot Foundation.
8 svnclobber.pl - delete all files that are not checked into SVN
16 This is a dangerous script. It deletes all files that are not checked
19 Usually this script is invoked by C<make svnclobber> of the root Parrot makefile.
20 In case that there is no Makefile, this script can also be invoked directly.
24 Extracted from F<config/gen/makefiles/root.in>
36 # Try to be nice and delete files only below a checked out SVN repository.
38 die "The current directory is not a SVN working copy" unless -d
'.svn';
42 if ( -f
# remove only files
43 and not $File::Find
::name
=~ m/\.svn/
44 and not -e
".svn/text-base/$_.svn-base"
55 # cperl-indent-level: 4
58 # vim: expandtab shiftwidth=4: