#! /bin/sh
# examine la sortie de camlc -v ou ocamlc -v

txt=`$1 -v 2>&1`
case $2 in
version) echo $txt | sed -e 's/.*version[ ]*\([0-9]*\)[.]\([0-9]*\).*/\1\2/';;
libdir)  echo $txt | sed -e 's?.*andard library[^/]*\([^ )]*\).*?\1?';;
esac
