mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
in Linux build script check for missing files
This commit is contained in:
parent
71f1097544
commit
7447949cf0
@ -316,7 +316,10 @@ function build_for () {
|
|||||||
local build_cmds=()
|
local build_cmds=()
|
||||||
local -A objs_dirs=()
|
local -A objs_dirs=()
|
||||||
for src_file in $( echo "${all_src[@]}" ); do
|
for src_file in $( echo "${all_src[@]}" ); do
|
||||||
[[ -f "$src_file" ]] || continue
|
[[ -f "$src_file" ]] || {
|
||||||
|
echo "[X] file "$src_file" wasn't found" >&2;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
# https://stackoverflow.com/a/9559024
|
# https://stackoverflow.com/a/9559024
|
||||||
local obj_dir=$( [[ -d "${src_file%/*}" ]] && echo "${src_file%/*}" || echo '.' )
|
local obj_dir=$( [[ -d "${src_file%/*}" ]] && echo "${src_file%/*}" || echo '.' )
|
||||||
|
Loading…
Reference in New Issue
Block a user