Sha256: b472e6f3175e1ba1a38cde07a4967b489e350403d5e5c841843c375efed55d10

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

#!/bin/sh
#export DEBUG=-rdebug


#export RUBYLEXERVSRUBY=testcode/rubylexervsruby.sh
export RUBYLEXERVSRUBY=testcode/rubylexervsruby.rb
export ARGS=$*
  #something broken here
   #test -n "$ARGS" && (


   echo 'looking for ruby files in debian packages...'
   find testdata/ -name '_*' -print|xargs -l200 rm
   for i in `feta find '\.rb'|cut -d: -f2-99`; do
      ln -s "$i" testdata/`echo $i|tr '/ ' '_'` 2>&1 |grep -v ': File exists$';
   done
   #)

   for i in testdata/*.rb; do
      $RUBYLEXERVSRUBY $i;
   done


   for i in *.rb; do
      $RUBYLEXERVSRUBY $i;
   done



#$RUBYLEXERVSRUBY assert.rb
#$RUBYLEXERVSRUBY charhandler.rb
#$RUBYLEXERVSRUBY term.rb
#$RUBYLEXERVSRUBY token.rb
#$RUBYLEXERVSRUBY rubycode.rb
#$RUBYLEXERVSRUBY rumalexer.rb
#$RUBYLEXERVSRUBY rubylexer.rb
#$RUBYLEXERVSRUBY rulexer.rb
#$RUBYLEXERVSRUBY matcher.rb
####$RUBYLEXERVSRUBY pattern.rb
#$RUBYLEXERVSRUBY rumaparser.rb


#also look in bin and lib directories
file -L `echo $PATH":/sbin:/usr/sbin"|tr : "\n"|sort -u|xargs -i echo "{}/*"`| \
 grep "ruby[^:]*script"|cut -d: -f1 > testresults/rubyexelibs

ruby -e 'print ($:.sort.uniq+[""]).join"\n"'|xargs -i ls "{}/*.rb" >> testresults/rubyexelibs

   for i in `cat testresults/rubyexelibs`; do
      $RUBYLEXERVSRUBY $i;
   done

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubylexer-0.6.2 testcode/torment