* Remove bashism from ocamldoc-api-ref-config (dash compatible)
authorSylvain Le Gall <gildor@debian.org>
Sat, 10 Nov 2007 16:30:52 +0000 (16:30 +0000)
committerSylvain Le Gall <gildor@debian.org>
Sat, 10 Nov 2007 16:30:52 +0000 (16:30 +0000)
debian/cdbs/ocamldoc-api-ref-config
debian/changelog

index bce02f15c147005c59fe5cf72aec7f4ffaa88f19..06ca7c3d59e77de791146ba5e598ede2ebc4915d 100755 (executable)
@@ -73,7 +73,7 @@ EOF
 }
 
 ACTION=true
-PACKAGE_IDX=1
+PACKAGES=
 
 while test $# -gt 0; do
   case "$1" in
@@ -91,14 +91,13 @@ while test $# -gt 0; do
       error_usage "Unknown option $1"
     ;;
     *)
-      PACKAGE[$PACKAGE_IDX]=$1
-      PACKAGE_IDX=$(($PACKAGE_IDX + 1))
+      PACKAGES="$PACKAGES $1"
     ;;      
   esac
   shift
 done
 
-for i in `seq $(($PACKAGE_IDX - 1))`; do
-  $ACTION ${PACKAGE[$i]}
+for i in $PACKAGES; do
+  $ACTION $i
 done
 
index d748c0861d13c88590cae96aca9672ba6db83a66..18bab062e9fdd20071710bf6b3b815cb8d7b2977 100644 (file)
@@ -11,10 +11,11 @@ ocaml (3.10.0-9) UNRELEASED; urgency=low
 
   [ Sylvain Le Gall ]
   * fixes in cdbs class for ocamldoc generation, provides
-    ocamldoc-api-ref-config to centralize generation of .ocamldoc-apiref 
+    ocamldoc-api-ref-config to centralize generation of .ocamldoc-apiref
   * remove ia64, arm and alpha native arches (no more ocamlopt for this arches)
+  * Array is bashism, remove it from ocamldoc-api-ref-config
 
- -- Sylvain Le Gall <gildor@debian.org>  Wed, 17 Oct 2007 22:29:46 +0200
+ -- Sylvain Le Gall <gildor@debian.org>  Sat, 10 Nov 2007 17:28:48 +0100
 
 ocaml (3.10.0-8) unstable; urgency=low