From 43fabdf2afb6fa94806e29c2f1c80f9b9fcaf2ed Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Fri, 14 Sep 2007 14:56:06 -0700 Subject: [PATCH] run xptgen from build script, use env vars from xptgen to get mozilla objdir/srcdir paths --- services/sync/xptgen | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/services/sync/xptgen b/services/sync/xptgen index 84eba2b6ee4..033f63ce017 100755 --- a/services/sync/xptgen +++ b/services/sync/xptgen @@ -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