aboutsummaryrefslogtreecommitdiff
path: root/mesonrewriter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-15 09:42:38 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-02 22:01:13 +0300
commit59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b (patch)
treec78094bb98624b700369f0018a4b0d557bb802dc /mesonrewriter.py
parentfa278f351fe3d6924b4d1961f77b5b4a36e133f8 (diff)
downloadmeson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.zip
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.gz
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.bz2
Print deprecation warnings on old style commands.
Diffstat (limited to 'mesonrewriter.py')
-rwxr-xr-xmesonrewriter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonrewriter.py b/mesonrewriter.py
index 7c8fdb1..e5b0155 100755
--- a/mesonrewriter.py
+++ b/mesonrewriter.py
@@ -23,9 +23,10 @@
# - move targets
# - reindent?
-from mesonbuild import rewriter
+from mesonbuild import mesonmain, mlog
import sys
if __name__ == '__main__':
- sys.exit(rewriter.run(sys.argv[1:]))
+ mlog.warning('This program is deprecated, use "meson rewrite" instead')
+ sys.exit(mesonmain.run(['rewrite'] + sys.argv[1:]))