[Pkg-ocaml-maint-commits] [SCM] coinst packaging branch, master, updated. debian/1.01-1-7-gcfe1a56

Ralf Treinen treinen at free.fr
Sat Jan 21 21:21:27 UTC 2012


The following commit has been merged in the master branch:
commit ad58ff86053ebc524d5127d9be0f07287ecb386b
Author: Ralf Treinen <treinen at 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 <treinen at debian.org>  Sat, 21 Jan 2012 21:48:45 +0100
+ -- Ralf Treinen <treinen at 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



More information about the Pkg-ocaml-maint-commits mailing list