mirror of
https://github.com/frida/releng.git
synced 2026-11-07 09:36:02 -10:00
meson-scripts: Absorb the wrappers directory
The wrappers directory duplicated meson-scripts, which is what the README tells projects to copy from. Fold the command -v and missing submodule changes into meson-scripts and drop the duplicate.
This commit is contained in:
1 parent
c25f4fe937
commit
81b48e2b6a
7 files changed
+4
-89
No files matched your search
@@ -1,4 +1,4 @@
|
||||
PYTHON ?= $(shell which python3 >/dev/null && echo python3 || echo python)
|
||||
PYTHON ?= $(shell command -v python3 >/dev/null && echo python3 || echo python)
|
||||
|
||||
all $(MAKECMDGOALS):
|
||||
@$(PYTHON) \
|
||||
@@ -8,7 +8,7 @@ all $(MAKECMDGOALS):
|
||||
$(MAKECMDGOALS)
|
||||
|
||||
git-submodules:
|
||||
@if [ ! -f releng/meson/meson.py ]; then \
|
||||
@if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then \
|
||||
git submodule update --init --recursive --depth 1; \
|
||||
fi
|
||||
-include git-submodules
|
||||
|
||||
Vendored
+2
-2
@@ -1,12 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -z "$PYTHON" ] && PYTHON=$(which python3 >/dev/null && echo python3 || echo python)
|
||||
[ -z "$PYTHON" ] && PYTHON=$(command -v python3 >/dev/null && echo python3 || echo python)
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
srcroot=$(pwd)
|
||||
|
||||
if [ ! -f releng/meson/meson.py ]; then
|
||||
if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then
|
||||
git submodule update --init --recursive --depth 1 || exit $?
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
all: .DEFAULT
|
||||
|
||||
.DEFAULT:
|
||||
@gmake ${.MAKEFLAGS} ${.TARGETS}
|
||||
|
||||
.PHONY: all
|
||||
@@ -1,16 +0,0 @@
|
||||
PYTHON ?= $(shell command -v python3 >/dev/null && echo python3 || echo python)
|
||||
|
||||
all $(MAKECMDGOALS):
|
||||
@$(PYTHON) \
|
||||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_make import main; main()" \
|
||||
"$(shell pwd)" \
|
||||
./build \
|
||||
$(MAKECMDGOALS)
|
||||
|
||||
git-submodules:
|
||||
@if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then \
|
||||
git submodule update --init --recursive --depth 1; \
|
||||
fi
|
||||
-include git-submodules
|
||||
|
||||
.PHONY: all $(MAKECMDGOALS)
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -z "$PYTHON" ] && PYTHON=$(command -v python3 >/dev/null && echo python3 || echo python)
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
srcroot=$(pwd)
|
||||
|
||||
if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then
|
||||
git submodule update --init --recursive --depth 1 || exit $?
|
||||
fi
|
||||
|
||||
cd - >/dev/null
|
||||
|
||||
exec "$PYTHON" \
|
||||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_configure import main; main()" \
|
||||
"$srcroot" \
|
||||
"$@"
|
||||
@@ -1,22 +0,0 @@
|
||||
@setlocal
|
||||
@echo off
|
||||
rem:: Based on: https://github.com/microsoft/terminal/issues/217#issuecomment-737594785
|
||||
goto :_start_
|
||||
|
||||
:set_real_dp0
|
||||
set dp0=%~dp0
|
||||
set "dp0=%dp0:~0,-1%"
|
||||
goto :eof
|
||||
|
||||
:_start_
|
||||
call :set_real_dp0
|
||||
|
||||
if not exist "%dp0%\releng\meson\meson.py" (
|
||||
pushd "%dp0%" & git submodule update --init --recursive --depth 1 & popd
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
)
|
||||
|
||||
endlocal & goto #_undefined_# 2>nul || title %COMSPEC% & python ^
|
||||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_configure import main; main()" ^
|
||||
"%dp0%" ^
|
||||
%*
|
||||
@@ -1,23 +0,0 @@
|
||||
@setlocal
|
||||
@echo off
|
||||
rem:: Based on: https://github.com/microsoft/terminal/issues/217#issuecomment-737594785
|
||||
goto :_start_
|
||||
|
||||
:set_real_dp0
|
||||
set dp0=%~dp0
|
||||
set "dp0=%dp0:~0,-1%"
|
||||
goto :eof
|
||||
|
||||
:_start_
|
||||
call :set_real_dp0
|
||||
|
||||
if not exist "%dp0%\releng\meson\meson.py" (
|
||||
pushd "%dp0%" & git submodule update --init --recursive --depth 1 & popd
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
)
|
||||
|
||||
endlocal & goto #_undefined_# 2>nul || title %COMSPEC% & python ^
|
||||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_make import main; main()" ^
|
||||
"%dp0%" ^
|
||||
.\build ^
|
||||
%*
|
||||
Reference in new issue
Block a user