run xptgen from build script, use env vars from xptgen to get mozilla objdir/srcdir paths

This commit is contained in:
Dan Mills 2007-09-14 14:56:06 -07:00
parent f4a130cf8f
commit 43fabdf2af

View File

@ -1,2 +1,12 @@
#!/bin/bash
../../mozilla-trunk/obj/firefox/dist/bin/xpidl -m typelib -I ../../mozilla-trunk/mozilla/xpcom/base/ -o nsIBookmarksSyncService nsIBookmarksSyncService.idl
if [[ ! -d $MOZOBJDIR ]]; then
echo "MOZOBJDIR environment variable must point to a Mozilla build obj tree (with xptgen)"
exit 1
fi
if [[ ! -d $MOZSRCDIR ]]; then
echo "MOZSRCDIR environment variable must point to a Mozilla source tree"
exit 1
fi
$MOZOBJDIR/dist/bin/xpidl -m typelib -I $MOZSRCDIR/xpcom/base/ -o nsIBookmarksSyncService nsIBookmarksSyncService.idl