[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#551800: error in jocamlmktop



Package: jocaml
Version: 3.11.1-1
Severity: normal
Tags: patch

$ cat q.ml 
let x = print_endline
$ ocamlc -c q.ml
$ jocamlmktop q.cmo -o q.top
/usr/bin/jocamlmktop: -o option should have an argument

Fix:
--- /usr/bin/jocamlmktop	2009-07-08 00:47:41.000000000 +0300
+++ jocamlmktop	2009-10-20 22:14:30.000000000 +0300
@@ -9,10 +9,7 @@
   if [[ "$TOP" == "" ]] ; then
     TOP="a.out"
   fi
-  if [ ! -f "a.out" ] ; then
-    echo "$0: -o option should have an argument"
-    exit 1
-  else if [ ! -f "$TOP" ] ; then
+  if [ ! -f "$TOP" ] ; then
     echo "$0: The generated toplevel doesn't exist"
     exit 1
   else
@@ -21,5 +18,4 @@
     /usr/lib/jocaml/expunge $TMP $TOP -v Parsetree Env Types
     rm -f $TMP
   fi
-  fi
 fi


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (800, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages jocaml depends on:
ii  jocaml-base                   3.11.1-1   OCaml extended for concurrent and 
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  ocaml-nox [ocaml-nox-3.11.1]  3.11.1-2   ML implementation with a class-bas

jocaml recommends no packages.

jocaml suggests no packages.

-- no debconf information



Reply to: