From 7d0e3cf4afdd070c00b33ac68c82a56f0373a922 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Thu, 16 Dec 2010 23:58:43 +0000
Subject: Warn about lv2config.

---
 wscript | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'wscript')

diff --git a/wscript b/wscript
index ce9b657..f213d1a 100644
--- a/wscript
+++ b/wscript
@@ -1,7 +1,9 @@
 #!/usr/bin/env python
+import autowaf
 import datetime
 import os
-import autowaf
+
+import Logs
 
 # Version of this package (even if built as a child)
 LV2EXT_VERSION = datetime.date.isoformat(datetime.datetime.now()).replace('-', '.')
@@ -99,3 +101,15 @@ def build(bld):
 	for e in extensions.split():
 		build_extension(bld, e, 'extensions')
 
+	bld.add_post_fun(warn_lv2config)
+
+def warn_lv2config(ctx):
+	if ctx.cmd == 'install':
+		Logs.pprint('BOLD', '''
+***************************************************************************
+* LV2 Extension(s) Installed                                              *
+* You need to run lv2config to compile against extension headers          *
+* e.g. $ sudo ldconfig                                                    *
+* (If you are packaging, extension packages MUST do this on installation) *
+***************************************************************************
+''')
-- 
cgit v1.2.1