MAME/automation_tools/update_mame_manifest.sh

20 lines
624 B
Bash
Raw Normal View History

2023-12-22 09:16:54 +00:00
#!/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"
sed -n '/cleanup/q;p' RetroDECK/net.retrodeck.retrodeck.yml > "$manifest_header"
sed -i '/^[[:space:]]*#/d' "$manifest_header"
sed -i 's/[[:space:]]*#.*$//' "$manifest_header"
sed -i 's/net.retrodeck.retrodeck/net.retrodeck.mame/' "$manifest_header"
2023-12-22 10:12:14 +00:00
sed -i 's/retrodeck\.sh/\/app\/bin\/mame/' "$manifest_header"
2023-12-22 09:16:54 +00:00
2023-12-22 10:03:23 +00:00
cat "$manifest_header" > "$mame_manifest"
2023-12-22 09:16:54 +00:00
cat "$mame_module" >> "$mame_manifest"
rm -rf RetroDECK