Turn deprecated commands into errors.

pull/3018/merge
Jussi Pakkanen 7 years ago
parent 9ecb75670f
commit 24ae120868
  1. 7
      docs/markdown/snippets/del-old-names.md
  2. 5
      mesonconf.py
  3. 5
      mesonintrospect.py
  4. 5
      mesonrewriter.py
  5. 5
      mesontest.py

@ -0,0 +1,7 @@
## Old command names are now errors
Old executable names `mesonintrospect`, `mesonconf`, `mesonrewriter`
and `mesontest` have been deprecated for a long time. Starting from
this versino they no longer do anything but instead always error
out. All functionality is available as subcommands in the main `meson`
binary.

@ -14,10 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mesonbuild import mesonmain
import sys
if __name__ == '__main__':
print('Warning: This executable is deprecated. Use "meson configure" instead.',
file=sys.stderr)
sys.exit(mesonmain.run(['configure'] + sys.argv[1:]))
sys.exit('Error: This executable is no more. Use "meson configure" instead.')

@ -14,10 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mesonbuild import mesonmain
import sys
if __name__ == '__main__':
print('Warning: This executable is deprecated. Use "meson introspect" instead.',
file=sys.stderr)
sys.exit(mesonmain.run(['introspect'] + sys.argv[1:]))
sys.exit('Error: This executable is no more. Use "meson introspect" instead.')

@ -23,10 +23,7 @@
# - move targets
# - reindent?
from mesonbuild import mesonmain
import sys
if __name__ == '__main__':
print('Warning: This executable is deprecated. Use "meson rewrite" instead.',
file=sys.stderr)
sys.exit(mesonmain.run(['rewrite'] + sys.argv[1:]))
sys.exit('Error: This executable is no more. Use "meson rewrite" instead.')

@ -16,10 +16,7 @@
# A tool to run tests in many different ways.
from mesonbuild import mesonmain
import sys
if __name__ == '__main__':
print('Warning: This executable is deprecated. Use "meson test" instead.',
file=sys.stderr)
sys.exit(mesonmain.run(['test'] + sys.argv[1:]))
sys.exit('Error: This executable is no more. Use "meson test" instead.')

Loading…
Cancel
Save