yarv-dev-en:228
From: cies <cies.breijs gmail.com>
Date: Sun, 29 Oct 2006 14:08:27 +0100
Subject: [yarv-dev-en:228] svn:executable properties
i checked out a the trunk of yarv: svn co http://www.atdot.net/svn/yarv/trunk and saw that some svn:executable properties are set wrongly. of instance ./eval_load.c (in trunk) is set executable, but it should clearly not be. i made 2 queries to create lists of... 1) executable but should not be: Dir['./**/*'].each {|fn| puts "#{fn} \\" if File.new(fn).stat.executable? and not File.new(fn).stat.directory? and not fn[-4..-1] == '.bat' and not (fn[-3..-1] == '.rb' and open(fn).read[0..1] == '#!' ) }; nil 2) not executable but should be: Dir['./**/*'].each {|fn| puts "#{fn} \\" if not File.new(fn).stat.executable? and ( fn[-4..-1] == '.bat' or (fn[-3..-1] == '.rb' and open(fn).read[0..1] == '#!' ) ) }; nil you can easily cut and paste the outputs these command generate into the following to svn command: svn propdel svn:executable \ ./eval_load.c \ ./thread_pthread.h \ ./thread.c \ ./test2.rb \ ./rb/mklog.rb \ ./ruby_doc/COPYING.ja \ ./ruby_doc/ruby.1 \ ./ruby_doc/LEGAL \ ./ruby_doc/GPL \ ./ruby_doc/COPYING \ ./ruby_doc/ToDo \ ./ruby_doc/LGPL \ ./ruby_doc/README.EXT.ja \ ./ruby_doc/README.ja \ ./ruby_doc/ChangeLog \ ./ruby_doc/README.EXT \ ./ruby_doc/README \ ./lib/optparse.rb \ ./lib/optparse/version.rb \ ./lib/optparse/date.rb \ ./lib/optparse/time.rb \ ./lib/optparse/uri.rb \ ./lib/optparse/shellwords.rb \ ./cygwin/GNUmakefile.in \ ./win32/winmain.c \ ./win32/win32.c \ ./win32/dir.h \ ./win32/Makefile.sub \ ./win32/setup.mak \ ./win32/win32.h \ ./win32/README.win32 \ ./yarvtest/test_test.rb \ ./ext/digest/extconf.rb \ ./ext/digest/depend \ ./ext/digest/digest.c \ ./ext/digest/digest.h \ ./ext/digest/defs.h \ ./ext/digest/digest.txt.ja \ ./ext/digest/digest.txt \ ./ext/digest/test.sh \ ./ext/digest/md5/md5ossl.c \ ./ext/digest/md5/depend \ ./ext/digest/md5/md5.c \ ./ext/digest/md5/extconf.rb \ ./ext/digest/md5/md5init.c \ ./ext/digest/md5/md5.h \ ./ext/digest/md5/md5ossl.h \ ./ext/digest/lib/md5.rb \ ./ext/digest/lib/sha1.rb \ ./ext/digest/rmd160/rmd160ossl.h \ ./ext/digest/rmd160/depend \ ./ext/digest/rmd160/rmd160.h \ ./ext/digest/rmd160/extconf.rb \ ./ext/digest/rmd160/rmd160.c \ ./ext/digest/rmd160/rmd160ossl.c \ ./ext/digest/rmd160/rmd160init.c \ ./ext/digest/rmd160/rmd160hl.c \ ./ext/digest/sha1/sha1init.c \ ./ext/digest/sha1/depend \ ./ext/digest/sha1/sha1hl.c \ ./ext/digest/sha1/sha1ossl.h \ ./ext/digest/sha1/sha1.h \ ./ext/digest/sha1/extconf.rb \ ./ext/digest/sha1/sha1.c \ ./ext/digest/sha1/sha1ossl.c \ ./ext/digest/sha2/sha2init.c \ ./ext/digest/sha2/depend \ ./ext/digest/sha2/sha2hl.c \ ./ext/digest/sha2/extconf.rb \ ./ext/digest/sha2/sha2.h \ ./ext/digest/sha2/sha2.c \ ./ext/bigdecimal/bigdecimal.c \ ./ext/bigdecimal/depend \ ./ext/bigdecimal/bigdecimal_en.html \ ./ext/bigdecimal/bigdecimal.h \ ./ext/bigdecimal/extconf.rb \ ./ext/bigdecimal/README \ ./ext/bigdecimal/bigdecimal.def \ ./ext/bigdecimal/bigdecimal_ja.html \ ./ext/bigdecimal/lib/bigdecimal/ludcmp.rb \ ./ext/bigdecimal/lib/bigdecimal/util.rb \ ./ext/bigdecimal/lib/bigdecimal/jacobian.rb \ ./ext/bigdecimal/lib/bigdecimal/math.rb \ ./ext/bigdecimal/lib/bigdecimal/newton.rb \ ./ext/socket/extconf.rb \ ./ext/socket/depend \ ./ext/socket/mkconstants.rb \ ./ext/socket/getaddrinfo.c \ ./ext/socket/socket.c \ ./ext/socket/sockport.h \ ./ext/socket/addrinfo.h \ ./ext/socket/getnameinfo.c \ ./ext/Win32API/extconf.rb \ ./ext/Win32API/depend \ ./ext/Win32API/point.rb \ ./ext/Win32API/getch.rb \ ./ext/Win32API/Win32API.c \ ./ext/Win32API/lib/win32/registry.rb \ ./ext/Win32API/lib/win32/resolv.rb \ ./ext/stringio/stringio.c \ ./ext/stringio/depend \ ./ext/stringio/extconf.rb \ ./ext/stringio/README \ ./ext/win32ole/win32ole.c \ ./ext/win32ole/depend \ ./ext/win32ole/extconf.rb \ ./ext/win32ole/sample/oledirs.rb \ ./ext/win32ole/sample/ie.rb \ ./ext/win32ole/sample/xml.rb \ ./ext/win32ole/sample/excel1.rb \ ./ext/win32ole/sample/excel2.rb \ ./ext/win32ole/sample/excel3.rb \ ./ext/win32ole/sample/ieconst.rb \ ./ext/win32ole/sample/olegen.rb \ ./ext/win32ole/sample/ienavi.rb \ ./ext/win32ole/tests/testNIL2VTEMPTY.rb \ ./ext/win32ole/tests/testOLEPARAM.rb \ ./ext/win32ole/tests/testOLEMETHOD.rb \ ./ext/win32ole/tests/testOLEEVENT.rb \ ./ext/win32ole/tests/testOLETYPE.rb \ ./ext/win32ole/tests/testWIN32OLE.rb \ ./ext/win32ole/tests/testOLEVARIANT.rb \ ./ext/win32ole/tests/testVARIANT.rb \ ./ext/win32ole/tests/testOLEVARIABLE.rb \ ./ext/win32ole/tests/oleserver.rb \ ./ext/win32ole/tests/testall.rb \ ./ext/win32ole/tests/testOLETYPELIB.rb \ ./ext/win32ole/tests/testINVOKEVERB.rb \ ./ext/win32ole/doc/win32ole.rd \ ./ext/win32ole/lib/win32ole/property.rb \ ./ext/etc/etc.txt.ja \ ./ext/etc/depend \ ./ext/etc/extconf.rb \ ./ext/etc/etc.txt \ ./ext/etc/etc.c \ ./ext/strscan/extconf.rb \ ./ext/strscan/depend \ ./ext/strscan/strscan.c \ ./benchmark/run_rite.rb \ ./missing/strcasecmp.c \ ./missing/flock.c \ ./missing/strstr.c \ ./missing/crypt.c \ ./missing/hypot.c \ ./missing/os2.c \ ./missing/memmove.c \ ./missing/strchr.c \ ./missing/strtoul.c \ ./missing/isnan.c \ ./missing/isinf.c \ ./missing/dup2.c \ ./missing/fileblocks.c \ ./missing/erf.c \ ./missing/strerror.c \ ./missing/memcmp.c \ ./missing/finite.c \ ./missing/strtod.c \ ./missing/strncasecmp.c \ ./missing/file.h \ ./missing/x68.c \ ./missing/strtol.c \ ./missing/vsnprintf.c \ ./missing/alloca.c \ ./missing/strftime.c \ ./missing/acosh.c \ and svn propset svn:executable \ ./mkconfig.rb \ ./rubytest.rb \ ./instruby.rb \ ./rb/insns2vm.rb \ ./rb/makedocs.rb \ ./sample/test.rb \ ./lib/tsort.rb \ ./lib/set.rb \ ./lib/abbrev.rb \ ./lib/matrix.rb \ ./lib/irb/ext/save-history.rb \ ./lib/irb/cmd/subirb.rb \ ./lib/rdoc/markup/sample/rdoc2latex.rb \ ./lib/rdoc/parsers/parse_rb.rb \ ./ext/syslog/test.rb \ ./ext/curses/hello.rb \ ./ext/curses/mouse.rb \ ./ext/curses/rain.rb \ ./ext/curses/view.rb \ ./ext/curses/view2.rb \ ./benchmark/bm_so_ackermann.rb \ ./benchmark/bm_app_pentomino.rb \ ./benchmark/bm_so_matrix.rb \ ./benchmark/bm_so_nested_loop.rb \ ./benchmark/bm_so_array.rb \ ./benchmark/bm_so_concatenate.rb \ ./benchmark/bm_so_exception.rb \ ./benchmark/bm_so_count_words.rb \ ./benchmark/bm_so_object.rb \ ./test/digest/test_digest.rb \ ./test/pathname/test_pathname.rb \ these commands work for me, but i dont have commit rights. so maybe someone with commit rights can help me clean the svn repository of this great piece of software. thanks! cies breijs. -- "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." -- Kristian Wilson (Nintendo, Inc), 1989 -- ML: yarv-dev-en quickml.atdot.net Info: http://www.atdot.net/~ko1/quickml