The following commit has been merged in the master branch:
commit ad58ff86053ebc524d5127d9be0f07287ecb386b
Author: Ralf Treinen <trei...@free.fr>
Date:   Sat Jan 21 21:59:25 2012 +0100

    build coinst in bytecode on non-native archs

diff --git a/debian/changelog b/debian/changelog
index 26a1f96..cce0797 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 coinst (1.01-2) UNRELEASED; urgency=low
 
   * Rename patch clean_viewer to make-clean, also clean coinst.byte.
+  * debian/rules: build bytecode coinst on non-native architectures.
 
- -- Ralf Treinen <trei...@debian.org>  Sat, 21 Jan 2012 21:48:45 +0100
+ -- Ralf Treinen <trei...@debian.org>  Sat, 21 Jan 2012 21:58:07 +0100
 
 coinst (1.01-1) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 7110000..54aa9c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,18 @@
 #!/usr/bin/make -f
 
+OPTCOMPILER=/usr/bin/ocamlopt
+
 %:
        dh $@ --with ocaml
 
 override_dh_auto_build:
-       make
-       cd viewer && make
+       if [ -x $(OPTCOMPILER) ]; then \
+                $(MAKE);\
+               cd viewer && make;\
+        else\
+               $(MAKE) byte;\
+               ln coinst.byte coinst;\
+        fi
 
 override_dh_auto_clean:
        make clean

-- 
coinst packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to