WIP: wildcard-less routing. Initial import from autogenerated controller/method files.
WIP: wildcard-less routing. Initial import from autogenerated controller/method files.

for i in *.rb; do test "$i" = "application_controller.rb" && continue; cn="$(echo "$i" | sed -re 's/(.*)_controller.rb/\1/')"; grep 'Controller < ' "$i" | sed -e 's/class /# /;s/Controller < .*//' ; egrep '^ *def ' "$i" | sed -re "s#^.*def #match '$cn/#;s/"'$'"/'/"; done >> ../../config/routes.rb

euank/moebooru-thin,moebooru/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,euank/moebooru-thin,euank/moebooru-thin,nanaya/moebooru,nanaya/moebooru,moebooru/moebooru,euank/moebooru-thin