Skip to content
Snippets Groups Projects
Commit 818e41a4 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[python] Remove deprecated rmgenerated.py

parent fda31d92
Branches
Tags
1 merge request!1344Remove some code deprecated in 2.9
......@@ -112,6 +112,9 @@ In order to build the DUNE core modules you need at least the following software
- Remove deprecated CMake function `inkscape_generate_png_from_svg`. Use
`dune_create_inkscape_image_converter_target` instead.
- Remove deprecated `rmgenerated.py`. Call `python -m dune remove` with the same
arguments instead.
- We have changed the way optional dependencies are activated in the build-system internally.
The cmake macros `add_dune_xy_flags` do not set the compiler flag `-DENABLE_XY=1` anymore, but instead
set directly the flag `-DHAVE_XY=1`. Neither `ENABLE_XY` nor `HAVE_XY` should be modified manually
......
......@@ -8,5 +8,4 @@ install(PROGRAMS
dunecontrol
dunepackaging.py
dune-git-whitespace-hook
rmgenerated.py
DESTINATION ${CMAKE_INSTALL_BINDIR})
#!/usr/bin/env python3
# SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
import sys
from dune.generator.remove import removeGenerated
from argparse import ArgumentParser
parser = ArgumentParser(description='Removing generated module from dune-py')
parser.add_argument('-a', '--all', help='remove all modules', action='store_true', default=False)
parser.add_argument('modules', metavar='M', nargs='*',
help='base of the modules to remove')
print(
"""
Deprecation warning:
This script is deprecated and will be removed in the next release.
Call `python -m dune remove` with the same arguments instead.
""")
try:
args = parser.parse_args()
except:
sys.exit(0)
modules = []
if args.all:
modules = ['all']
elif len(args.modules) > 0:
modules = args.modules
else:
parser.print_help()
sys.exit(0)
removeGenerated(modules)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment