/usr/include/caml is back in postinst, uploading.
authorSamuel Mimram <smimram@debian.org>
Sun, 23 Jul 2006 15:57:51 +0000 (15:57 +0000)
committerSamuel Mimram <smimram@debian.org>
Sun, 23 Jul 2006 15:57:51 +0000 (15:57 +0000)
debian/changelog
debian/ocaml-nox.postinst [deleted file]
debian/ocaml-nox.postinst.in [new file with mode: 0644]
debian/rules

index 464792ae9fbf725a0d44539ce6d5bd3af244fc75..d267c508c01a9c43eb4d832101a6ca51ac36e244 100644 (file)
@@ -1,10 +1,10 @@
-ocaml (3.09.2-6) UNRELEASED; urgency=low
+ocaml (3.09.2-6) unstable; urgency=low
 
-  [ Samuel Mimram ]
-  * Correct /usr/include/caml symbolic link (Closes: #379271).
+  * Correct /usr/include/caml symbolic link, closes: #379271.
   * Correct symbolic links in documentation directories.
+  * Updated policy.
 
- -- Julien Cristau <julien.cristau@ens-lyon.org>  Sun, 23 Jul 2006 12:42:18 +0200
+ -- Samuel Mimram <smimram@debian.org>  Sun, 23 Jul 2006 14:37:36 +0000
 
 ocaml (3.09.2-5) unstable; urgency=low
 
diff --git a/debian/ocaml-nox.postinst b/debian/ocaml-nox.postinst
deleted file mode 100644 (file)
index b024813..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = "configure" ]; then
-  ocaml-md5sums update
-
-  # Save Emacs conffiles from previous ocaml versions
-  for f in ocaml ocaml-nox ; do
-    file="/etc/emacs/site-start.d/50$f.el"
-    if [ -e "$file" ]; then
-      mv "$file" "$file.save"
-    fi
-  done
-fi
-
-#DEBHELPER#
diff --git a/debian/ocaml-nox.postinst.in b/debian/ocaml-nox.postinst.in
new file mode 100644 (file)
index 0000000..eecb876
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" ]; then
+  ln -sf /usr/lib/ocaml/#OcamlABI#/caml /usr/include/
+
+  ocaml-md5sums update
+
+  # Save Emacs conffiles from previous ocaml versions
+  for f in ocaml ocaml-nox ; do
+    file="/etc/emacs/site-start.d/50$f.el"
+    if [ -e "$file" ]; then
+      mv "$file" "$file.save"
+    fi
+  done
+fi
+
+#DEBHELPER#
index f7b3d19978e3687fdd64b5ead51d1b2ab775f537..3bbefa2a98c96a8a63078969f212382c80e36c3f 100755 (executable)
@@ -241,8 +241,7 @@ install-arch: build-arch
        # Remove .opt manpages from ocaml-nox
        rm -f debian/ocaml-nox/usr/share/man/man1/*.opt.1
 
-       # make some symbolic links
-       cd debian/ocaml-nox/usr/include; ln -sf /usr/lib/ocaml/$(OCAMLABI)/caml .
+       # Make some symbolic links
        cd debian/ocaml-native-compilers/usr/share/man/man1; \
                ln -sf /usr/share/man/man1/ocamlc.1.gz ocamlc.opt.1.gz; \
                ln -sf /usr/share/man/man1/ocamlopt.1.gz ocamlopt.opt.1.gz; \