* Change pixmaps location to /usr/share/pixmaps
authorJerome Marant <jerome@debian.org>
Sat, 3 Sep 2005 16:15:39 +0000 (16:15 +0000)
committerJerome Marant <jerome@debian.org>
Sat, 3 Sep 2005 16:15:39 +0000 (16:15 +0000)
* Move menu entry to ocaml-interp package
* Remove bashism from ocaml-nox preint script
* Fix previous changes to ocaml-nox postinst
* Close bug for emacs-related changes

debian/changelog
debian/ocaml-interp.dirs
debian/ocaml-interp.menu [new file with mode: 0644]
debian/ocaml-nox.dirs
debian/ocaml-nox.menu [deleted file]
debian/ocaml-nox.postinst
debian/ocaml-nox.preinst
debian/rules

index 17ad7022733d145c44daeb061a9af9b148154d25..c38ca0ee7284073d603283f4ebe79bc36d328e4f 100644 (file)
@@ -2,6 +2,7 @@ ocaml (3.08.3-8) UNRELEASED; urgency=low
 
   Changes by Jérôme Marant:
   * Create a new `ocaml-mode' package dedicated at Emacs-related files
+    (Closes: Bug#312618, Bug#322210)
   * debian/control:
     - Add new ocaml-mode package section
     - [ocaml-nox]
@@ -38,6 +39,26 @@ ocaml (3.08.3-8) UNRELEASED; urgency=low
     - New files
   * debian/rules: Update ocaml-md5sums files location accordingly
   
+  * Move ocaml-nox menu file to ocaml-interp since the toplevel
+    is provided by ocaml-interp
+  * debian/ocaml-interp.menu:
+    - New file renamed from ocaml-nox.menu
+    - Change 'ocaml' to 'ocaml-interp' in the required package for
+      the menu to be displayed 
+  * debian/ocaml-interp.dirs: Add pixmaps directory
+  * debian/ocaml-nox.dirs: Remove pixmaps directory
+   
+  * Move xpm files away from the /usr/X11R6 deprecated directory
+    hierarchy to /usr/share/pixmaps, as per Policy (11.8.7)
+  * debian/rules: install JoeCaml.xpm in /usr/share/pixmaps within the
+    ocaml-interp package
+  * debian/ocaml-interp.menu: Change pixmap location
+  * Really install menu files
+  * debian/rules: uncomment dh_installmenu in the build-common target
+  
+  * debian/ocaml-nox.preinst: Remove bashism
+  
   Changes by Stefano Zacchiroli:
   * debian/rules
     - remove spurious CVS directories from labltk examples
@@ -46,8 +67,8 @@ ocaml (3.08.3-8) UNRELEASED; urgency=low
     - gets installed under /usr/share/ocaml-findlib/ so that, if
       ocamlfind is available, compiling with findlib will use the
       native compilers
-  
- --
+
+ -- Jerome Marant <jerome@debian.org>  Sat,  3 Sep 2005 12:16:52 +0200
 
 ocaml (3.08.3-7) unstable; urgency=low
 
index 3e8d2161f922c5a370bc8e03c308faf97d164086..fc9aa3d50b3ecf321d9650c080e610ea40bc51dd 100644 (file)
@@ -1,3 +1,4 @@
 usr/bin
 usr/share/man/man1
 usr/lib/ocaml/3.08.3
+usr/share/pixmaps
diff --git a/debian/ocaml-interp.menu b/debian/ocaml-interp.menu
new file mode 100644 (file)
index 0000000..86d6d3f
--- /dev/null
@@ -0,0 +1,5 @@
+?package(ocaml-interp):needs="text" section="Apps/Programming" \
+       title="Ocaml" longtitle="Ocaml Toplevel" \
+       hints="ocaml" \
+       command="/usr/bin/ocaml" \
+       icon="/usr/share/pixmaps/JoeCaml.xpm"
index 18bef22a06bf1808a66c1fca037fc6494acab998..c9b390edd91bf6097ab77a44f74c6ac0a0de3051 100644 (file)
@@ -5,5 +5,4 @@ usr/include/ocaml/3.08.3
 usr/share/man/man1
 usr/share/man/man3
 usr/share/texmf/tex/latex/misc
-usr/X11R6/include/X11/pixmaps
 usr/share/lintian/overrides
diff --git a/debian/ocaml-nox.menu b/debian/ocaml-nox.menu
deleted file mode 100644 (file)
index c0ced93..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-?package(ocaml):needs="text" section="Apps/Programming" \
-       title="Ocaml" longtitle="Ocaml Toplevel" \
-       hints="ocaml" \
-       command="/usr/bin/ocaml" \
-       icon="/usr/X11R6/include/X11/pixmaps/JoeCaml.xpm"
index 56bef73b56ebacfc04c77edbb6c285f45acfbd78..b3ef12b76d6206dde773ae9c81cb7265bb859dfb 100644 (file)
@@ -12,7 +12,9 @@ if [ "$1" = "configure" ]; then
   # Save Emacs conffiles from previous ocaml versions
   for f in ocaml ocaml-nox ; do
     file="/etc/emacs/site-start.d/50$f.el"
-    [ -e "$file" ] && mv "$file" "$file.save"
+    if [ -e "$file" ]; then
+      mv "$file" "$file.save"
+    fi
   done
 fi
 
index b6c08688827c77eb53c001985ee64b849c2d56b4..49819b32472c6e14b56d8a3851c09b02beaaf184 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-if [ ! -h /usr/include/caml -a -e /usr/include/caml ]; then
+if [ ! -h /usr/include/caml ] && [ -e /usr/include/caml ]; then
        echo "WARNING, /usr/include/caml is not a symlink !!!!"
 fi
 
index ad6e676b2bb87c585a87a15e246d2ec707007684..c219e5746282f65bef9bc0a731d3092e7f7823da 100755 (executable)
@@ -143,7 +143,7 @@ install-arch:
        # Let's install ocaml first.
        $(MAKE) install PREFIX=$(CURDIR)/debian/ocaml-nox/usr
        install -m 644 debian/JoeCaml.xpm \
-               $(CURDIR)/debian/ocaml-nox/usr/X11R6/include/X11/pixmaps
+               $(CURDIR)/debian/ocaml-interp/usr/share/pixmaps
        install -m 644 debian/ocaml-nox.override \
                $(CURDIR)/debian/ocaml-nox/usr/share/lintian/overrides/ocaml-nox
        install -m 644 debian/ocaml-base.override \
@@ -217,9 +217,10 @@ binary-common:
        dh_testroot
        dh_installchangelogs Changes
        dh_installdocs
-       -find debian/ocaml/ -type d -name CVS -exec rm -rf {} \;
+       -find debian/ocaml -type d -name CVS -exec rm -rf {} \;
+       -find debian/ocaml -type f -name .cvsignore -exec rm -rf {} \;
        dh_installexamples
-#      dh_installmenu
+       dh_installmenu
 #      dh_installdebconf       
 #      dh_installlogrotate     
        dh_installemacsen