~ubuntu-branches/ubuntu/karmic/farsight2/karmic

« back to all changes in this revision

Viewing changes to python/rebuild-defs.sh

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2009-05-29 12:20:24 UTC
  • mfrom: (1.1.4 upstream) (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090529122024-w0uzozcjda8zsul7
Tags: 0.0.12-1
New Upstream Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
cat ${filter} > ${output}
19
19
 
20
 
H2DEF=
 
20
 
 
21
 
 
22
H2DEF="$(pkg-config --variable=codegendir pygobject-2.0)/h2def.py"
 
23
[ -z "${H2DEF}" ] && H2DEF="$(pkg-config --variable=codegendir pygtk-2.0)/h2def.py"
21
24
[ -z "${H2DEF}" -a -f /usr/share/pygtk/2.0/codegen/h2def.py ] && H2DEF=/usr/share/pygtk/2.0/codegen/h2def.py
22
 
[ -z "${H2DEF}" -a -f /usr/lib/python2.5/site-packages/gtk-2.0/codegen/h2def.py ] && H2DEF=/usr/lib/python2.5/site-packages/gtk-2.0/codegen/h2def.py
23
 
[ -z "${H2DEF}" -a -f /usr/lib/python2.4/site-packages/gtk-2.0/codegen/h2def.py ] && H2DEF=/usr/lib/python2.4/site-packages/gtk-2.0/codegen/h2def.py
24
25
 
25
26
for h in $HEADERS; do
26
27
    python ${H2DEF} --defsfilter=${filter} ${srcdir}/$h >> $output