mirror of
https://github.com/RetroDECK/MAME.git
synced 2024-11-28 15:05:39 +00:00
22 lines
745 B
Bash
Executable file
22 lines
745 B
Bash
Executable file
#!/bin/bash
|
|
|
|
git clone https://github.com/XargonWan/RetroDECK --depth=1 RetroDECK
|
|
|
|
# Creating MAME manifest
|
|
manifest_header="manifest-header.yml"
|
|
mame_module="mame-module.yml"
|
|
mame_manifest="net.retrodeck.mame.yml"
|
|
command="/app/bin/mame"
|
|
|
|
sed -n '/command/q;p' RetroDECK/net.retrodeck.retrodeck.yml > "$manifest_header"
|
|
echo -e "command: $command\n" >> "$manifest_header"
|
|
sed -i '/^[[:space:]]*#/d' "$manifest_header"
|
|
sed -i 's/[[:space:]]*#.*$//' "$manifest_header"
|
|
sed -n '/finish-args:/,${/cleanup:/q;p;}' RetroDECK/net.retrodeck.retrodeck.yml >> "$manifest_header"
|
|
|
|
sed -i 's/net.retrodeck.retrodeck/net.retrodeck.mame/' "$manifest_header"
|
|
|
|
cat "$manifest_header" > "$mame_manifest"
|
|
cat "$mame_module" >> "$mame_manifest"
|
|
|
|
rm -rf RetroDECK |