|
1 | | -@echo OFF |
2 | | - |
3 | | -@rem Copyright (c) nexB Inc. and others. All rights reserved. |
4 | | -@rem SPDX-License-Identifier: Apache-2.0 |
5 | | -@rem See http://www.apache.org/licenses/LICENSE-2.0 for the license text. |
6 | | -@rem ScanCode is a trademark of nexB Inc. |
7 | | -@rem See https://github.com/nexB/scancode-toolkit for support or download. |
8 | | -@rem See https://aboutcode.org for more information about nexB OSS projects. |
9 | | - |
10 | | -@rem A wrapper to ScanCode command line entry point |
11 | | - |
12 | | -set SCANCODE_ROOT_DIR=%~dp0 |
13 | | -set SCANCODE_CONFIGURED_PYTHON=%SCANCODE_ROOT_DIR%Scripts\python.exe |
14 | | - |
15 | | -if not exist "%SCANCODE_CONFIGURED_PYTHON%" goto configure |
16 | | -goto scancode |
17 | | - |
18 | | -:configure |
19 | | -echo * Configuring ScanCode for first use... |
20 | | -echo * WARNING: Native Windows will be deprecated in the future in favor of Windows Subsystem for Linux |
21 | | -echo * WARNING: Please visit https://github.com/nexB/scancode-toolkit/issues/2366 for details and to provide feedback |
22 | | -set CONFIGURE_QUIET=1 |
23 | | -call "%SCANCODE_ROOT_DIR%configure" |
24 | | - |
25 | | -@rem Return a proper return code on failure |
26 | | -if %errorlevel% neq 0 ( |
27 | | - exit /b %errorlevel% |
28 | | -) |
29 | | - |
30 | | -:scancode |
31 | | -@rem without this things may not always work on Windows 10, but this makes things slower |
32 | | -set PYTHONDONTWRITEBYTECODE=1 |
33 | | - |
34 | | -"%SCANCODE_ROOT_DIR%Scripts\scancode" %* |
| 1 | +@echo OFF |
| 2 | + |
| 3 | +@rem Copyright (c) nexB Inc. and others. All rights reserved. |
| 4 | +@rem SPDX-License-Identifier: Apache-2.0 |
| 5 | +@rem See http://www.apache.org/licenses/LICENSE-2.0 for the license text. |
| 6 | +@rem ScanCode is a trademark of nexB Inc. |
| 7 | +@rem See https://github.com/nexB/scancode-toolkit for support or download. |
| 8 | +@rem See https://aboutcode.org for more information about nexB OSS projects. |
| 9 | + |
| 10 | +@rem A wrapper to ScanCode command line entry point |
| 11 | + |
| 12 | +set SCANCODE_ROOT_DIR=%~dp0 |
| 13 | +set SCANCODE_CONFIGURED_PYTHON=%SCANCODE_ROOT_DIR%Scripts\python.exe |
| 14 | + |
| 15 | +if not exist "%SCANCODE_CONFIGURED_PYTHON%" goto configure |
| 16 | +goto scancode |
| 17 | + |
| 18 | +:configure |
| 19 | +echo * Configuring ScanCode for first use... |
| 20 | +echo * WARNING: Native Windows will be deprecated in the future in favor of Windows Subsystem for Linux |
| 21 | +echo * WARNING: Please visit https://github.com/nexB/scancode-toolkit/issues/2366 for details and to provide feedback |
| 22 | +set CONFIGURE_QUIET=1 |
| 23 | +call "%SCANCODE_ROOT_DIR%configure" |
| 24 | + |
| 25 | +@rem Return a proper return code on failure |
| 26 | +if %errorlevel% neq 0 ( |
| 27 | + exit /b %errorlevel% |
| 28 | +) |
| 29 | + |
| 30 | +:scancode |
| 31 | +@rem without this things may not always work on Windows 10, but this makes things slower |
| 32 | +set PYTHONDONTWRITEBYTECODE=1 |
| 33 | + |
| 34 | +"%SCANCODE_ROOT_DIR%Scripts\scancode" %* |
0 commit comments