9b29b179fa412037a58dcb8aa0c4916fe357a367
[obnox/wireshark/wip.git] / debian / patches / 09_idl2eth.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 09_idl2eth.dpatch by  <fpeters@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad --exclude=CVS --exclude=.svn ./idl2eth.sh /tmp/dpep-work.ZF6eGD/ethereal-0.10.11/idl2eth.sh
9 --- ./idl2eth.sh        2005-07-17 19:40:44.000000000 +0200
10 +++ /tmp/dpep-work.ZF6eGD/ethereal-0.10.11/idl2eth.sh   2005-07-17 19:41:12.000000000 +0200
11 @@ -48,34 +48,5 @@
12      exit 1;
13  fi
14  
15 -#
16 -# Run ethereal backend, looking for ethereal_be.py and ethereal_gen.py
17 -# in pythons's "site-packages" directory. If cannot find that, then
18 -# try looking in current directory. If still cannot, then exit with
19 -# error.
20 -
21 -if [ -f $PYTHONPATH/site-packages/ethereal_be.py ] && [ -f $PYTHONPATH/site-packages/ethereal_gen.py ]; then
22 -    omniidl  -p $PYTHONPATH/site-packages -b ethereal_be $1
23 -    exit $?
24 -fi
25 -
26 -# Try current directory.
27 -
28 -if [ -f ./ethereal_be.py ] && [ -f ./ethereal_gen.py ]; then
29 -    omniidl  -p ./ -b ethereal_be $1
30 -    exit $?
31 -fi
32 -
33 -# Could not find both ethereal_be.py AND ethereal_gen.py
34 -
35 -echo "idl2eth Error: Could not find both ethereal_be.py AND ethereal_gen.py."
36 -echo "Please ensure you have the PYTHONPATH variable set, or that ethereal_be.py "
37 -echo "and ethereal_gen.py exist in the current directory. "
38 -echo
39 -echo "On this system, PYTHONPATH is : $PYTHONPATH"
40 -echo
41 -
42 -exit 2
43 -
44 -
45 +omniidl -b ethereal_be $1
46