summaryrefslogtreecommitdiffstats
path: root/tools/check_loading
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
commitef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch)
treec2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /tools/check_loading
parentdbb2c5713e11489dfaeb318a82785017f1794dde (diff)
parentb030c490265bb13ee98a650da419a033495042ed (diff)
downloadffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip
ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz
Merge branch 'wip'
Conflicts: tools/genruby.rb
Diffstat (limited to 'tools/check_loading')
-rwxr-xr-xtools/check_loading7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/check_loading b/tools/check_loading
index d53be77..4d4cc64 100755
--- a/tools/check_loading
+++ b/tools/check_loading
@@ -9,17 +9,18 @@ parentdir=${abspath%/*/*}
#
function run () {
echo -n " ${1##*/}"
- $RUBY -I $parentdir/lib $1 2>/dev/null && echo -e "$GREEN OK$RESET" || echo -e "$RED KO$RESET"
+ outf=/tmp/ffi-efl-${1##*/}
+ $RUBY -I $parentdir/lib $1 2>>$outf && rm $outf && echo -e "$GREEN OK$RESET" || echo -e "$RED KO$RESET"
}
#
function each () {
echo $($RUBY --version)
echo " lib/efl/native/*.rb"
- for native in $parentdir/lib/efl/native/*.rb; do
+ for native in $(find $parentdir/lib/efl/native/ -name *.rb); do
run $native
done
echo " lib/efl/*.rb"
- for wrapper in $parentdir/lib/efl/e*.rb; do
+ for wrapper in $(find $parentdir/lib/efl/ -name e*.rb); do
run $wrapper
done
}