pidl/wscript: only warn about grammar file changes
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Jan 2011 12:41:08 +0000 (13:41 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 6 Jan 2011 12:43:23 +0000 (13:43 +0100)
autobuild should protect us from having grammar files
and generated files out of sync.

metze

pidl/wscript

index 150ef41a637327db33ad677bb494ff4351af1ec5..5b3e07c0594b237223e650dc1d1f109824c34c07 100644 (file)
@@ -64,20 +64,20 @@ def build(bld):
         bld.IS_NEWER('expr.yp', 'lib/Parse/Pidl/Expr.pm')))
 
     if need_yapp_build:
-        Logs.error('''
+        Logs.warn('''
 Pidl grammar files have changed. Please use the pidl standalone build
 to regenerate them with yapp.
 
-$ cd pidl
+$ cd ../pidl
 $ perl Makefile.PL
 $ make lib/Parse/Pidl/IDL.pm lib/Parse/Pidl/Expr.pm
 $ git add lib/Parse/Pidl/IDL.pm lib/Parse/Pidl/Expr.pm
 $ git commit
+$ cd -
 
 If your 100% sure you haven't changed idl.yp and expr.yp
 try this to avoid this message:
 
-$ touch lib/Parse/Pidl/IDL.pm lib/Parse/Pidl/Expr.pm
+$ touch ../pidl/lib/Parse/Pidl/IDL.pm ../pidl/lib/Parse/Pidl/Expr.pm
 ''')
-        sys.exit(1)