[med-svn] r2528 - trunk/packages/imagej/trunk/debian

paolinux-guest at alioth.debian.org paolinux-guest at alioth.debian.org
Wed Sep 24 12:25:24 UTC 2008


Author: paolinux-guest
Date: 2008-09-24 12:25:22 +0000 (Wed, 24 Sep 2008)
New Revision: 2528

Modified:
   trunk/packages/imagej/trunk/debian/imagej.sh
Log:


Modified: trunk/packages/imagej/trunk/debian/imagej.sh
===================================================================
--- trunk/packages/imagej/trunk/debian/imagej.sh	2008-09-24 09:59:38 UTC (rev 2527)
+++ trunk/packages/imagej/trunk/debian/imagej.sh	2008-09-24 12:25:22 UTC (rev 2528)
@@ -146,13 +146,32 @@
 fi
 
 # Warning on syntax change
+#for var in "$@" ; do
+#	if [[ "$var" == @(-batch|-eval|-macro|-mem|-new|-port|-run|-verbose) ]] ; then
+#		echo "ImageJ command line options have changed!" 1>&2
+#		echo "$var is no longer a valid option." 1>&2
+#		echo "Type 'imagej -h' for full usage" 1>&2
+#		exit 1
+#	fi
+#done
+
+# Warning on syntax change, POSIX compliant
 for var in "$@" ; do
-	if [[ "$var" == @(-batch|-eval|-macro|-mem|-new|-port|-run|-verbose) ]] ; then
+   case "$var" in
+        -batch)
+        -eval)
+        -macro)
+	-mem)
+	-new)
+	-port)
+        -run)
+        -verbose)
 		echo "ImageJ command line options have changed!" 1>&2
 		echo "$var is no longer a valid option." 1>&2
 		echo "Type 'imagej -h' for full usage" 1>&2
-		exit 1
-	fi
+            exit 1
+        ;;
+    esac
 done
 
 




More information about the debian-med-commit mailing list