Files
nuitka-mirror/bin/generate-specialized-c-code.cmd
Kay Hayen 2641b319b2 Quality: Reject accidental executable bit changes
* Add a pre-commit check that rejects mode changes unless explicitly
  marked as intended with "GIT_COMMIT=unchecked".

* Normalize the ".cmd" helper scripts to mode "644", as Windows batch
  files do not need the executable bit.
2026-11-22 11:53:42 +01:00

41 lines
1.5 KiB
Batchfile

@echo off
rem Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
setlocal
set "SCRIPT=%~dp0generate-specialized-c-code"
python -c "" >nul 2>nul
if not errorlevel 1 (
python "%SCRIPT%" %*
exit /b
)
if exist "%~dp0..\.vscode\.python_alias_path" (
for /f "usebackq delims=" %%p in ("%~dp0..\.vscode\.python_alias_path") do (
"%%p" "%SCRIPT%" %*
exit /b
)
)
echo Error: Python not found. Please run 'misc/vscode_config_gen.py' or add Python to PATH.
exit /b 1
rem Part of "Nuitka", an optimizing Python compiler that is compatible and
rem integrates with CPython, but also works on its own.
rem
rem Licensed under the GNU Affero General Public License, Version 3 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem https://www.gnu.org/licenses/agpl-3.0.txt
rem
rem See also: "Nuitka Runtime Library Exception, Version 1.0" in file
rem "LICENSE-RUNTIME.txt" for additional permissions granted under Section 7.
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.