2024-07-25 11:37:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
git clone https://github.com/XargonWan/RetroDECK --depth=1 RetroDECK
|
|
|
|
|
|
|
|
# Creating module manifest
|
|
|
|
manifest_header="manifest-header.yml"
|
2024-07-25 13:56:29 +00:00
|
|
|
manifest_modules="manifest-modules.yml"
|
2024-07-25 13:52:02 +00:00
|
|
|
full_manifest="net.retrodeck.module.yml"
|
|
|
|
command="module"
|
2024-07-25 11:37:45 +00:00
|
|
|
|
2024-07-25 13:54:58 +00:00
|
|
|
sed -n '/command/q;p' RetroDECK/net.retrodeck.retrodeck.yml > "$manifest_header"
|
2024-07-25 11:37:45 +00:00
|
|
|
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.module/' "$manifest_header"
|
|
|
|
|
2024-07-25 13:52:02 +00:00
|
|
|
cat "$manifest_header" > "$full_manifest"
|
|
|
|
cat "$manifest_modules" >> "$full_manifest"
|
2024-07-25 11:37:45 +00:00
|
|
|
|
|
|
|
rm -rf RetroDECK
|