mirror of
https://github.com/suyu-emu/drippu-rep.git
synced 2026-09-21 14:44:58 -07:00
Squashed merge of Eden codebase. Original merge had Eden git history which contained objects incompatible with this repo's remote. Eden source: https://git.eden-emu.dev/eden-emu/eden
11 lines
355 B
Bash
Executable File
11 lines
355 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
which optipng || exit
|
|
NPROC=$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
|
|
|
|
# shellcheck disable=SC2038
|
|
find . -type f -iname '*.png' | xargs -P "$NPROC" -I {} optipng -o7 {}
|