Fix invalid variable substitution in buildscript.
[tatoo.git] / tools / ocamldriver.sh
index 2425147..792330c 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-EXT=${target%?}
+EXT=${target#*.cm}
 dirname=${base%/*}
 
 if test -f "$dirname".pack; then