From Mark C. Brown:
[obnox/wireshark/wip.git] / idl2eth.sh
index 6b4a4a666f90f29fc1649138ba0ee1b560953637..8d9cbfc791173a031ca43a22a9ba7ee3c5d9496e 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 #
-#  $Id: idl2eth.sh,v 1.1 2001/09/15 23:01:12 guy Exp $
+#  $Id$
 #
 #  File : idl2eth          
 #
@@ -55,18 +55,24 @@ fi
 # error.
 
 if [ -f $PYTHONPATH/site-packages/ethereal_be.py ] && [ -f $PYTHONPATH/site-packages/ethereal_gen.py ]; then
-    omniidl  -p $PYTHONPATH/site-packages -b ethereal_be $1
-    exit $?
+    exec omniidl  -p $PYTHONPATH/site-packages -b ethereal_be $@
+    /* not reached */
 fi
 
 # Try current directory.
 
 if [ -f ./ethereal_be.py ] && [ -f ./ethereal_gen.py ]; then
-    omniidl  -p ./ -b ethereal_be $1
-    exit $?
+    exec omniidl  -p ./ -b ethereal_be $@
+    /* not reached */
 fi
 
 # Could not find both ethereal_be.py AND ethereal_gen.py
+# So let's just try to run it without -p, hoping that the installation
+# set up a valid path.
+
+exec omniidl -b ethereal_be $@
+
+old code: not reached
 
 echo "idl2eth Error: Could not find both ethereal_be.py AND ethereal_gen.py."
 echo "Please ensure you have the PYTHONPATH variable set, or that ethereal_be.py "