mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
Ports: Fail if config.{sub,guess} don't replace existing files
This should help with finding misconfigured config.sub and config.guess settings.
This commit is contained in:
parent
26b4e74f4a
commit
1cab2e54e1
Notes:
sideshowbarker
2024-07-17 17:19:19 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/1cab2e54e1 Pull-request: https://github.com/SerenityOS/serenity/pull/13063 Reviewed-by: https://github.com/linusg ✅
@ -119,6 +119,10 @@ run_replace_in_file() {
|
||||
|
||||
get_new_config_sub() {
|
||||
config_sub="${1:-config.sub}"
|
||||
if [ ! -f "$workdir/$config_sub" ]; then
|
||||
>&2 echo "Error: Downloaded $config_sub does not replace an existing file!"
|
||||
exit 1
|
||||
fi
|
||||
if ! run grep -q serenity "$config_sub"; then
|
||||
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub" "${1:-config.sub}" false
|
||||
fi
|
||||
@ -126,6 +130,10 @@ get_new_config_sub() {
|
||||
|
||||
get_new_config_guess() {
|
||||
config_guess="${1:-config.guess}"
|
||||
if [ ! -f "$workdir/$config_guess" ]; then
|
||||
>&2 echo "Error: Downloaded $config_guess does not replace an existing file!"
|
||||
exit 1
|
||||
fi
|
||||
if ! run grep -q SerenityOS "$config_guess"; then
|
||||
run do_download_file "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess" "${1:-config_guess}" false
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user