aboutsummaryrefslogtreecommitdiff
path: root/mesonconf.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 /mesonconf.py
parentfa278f351fe3d6924b4d1961f77b5b4a36e133f8 (diff)
downloadmeson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.zip
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.gz
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.bz2
Print deprecation warnings on old style commands.
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-xmesonconf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonconf.py b/mesonconf.py
index 2b0a1a6..732a3b2 100755
--- a/mesonconf.py
+++ b/mesonconf.py
@@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from mesonbuild import mconf
+from mesonbuild import mesonmain, mlog
import sys
-sys.exit(mconf.run(sys.argv[1:]))
+if __name__ == '__main__':
+ mlog.warning('This executable is deprecated, use "meson configure" instead.')
+ sys.exit(mesonmain.run(['configure'] + sys.argv[1:]))