add extract_roms script

This commit is contained in:
Václav Uruba 2023-06-30 21:31:23 +02:00
parent b3ac11bd61
commit 670fa25284
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -0,0 +1,5 @@
#!/bin/bash
find . -name "*.7z" -type f -print0 | xargs -0I{} 7z x {} -oextracted -y
find . -regex "\.\/extracted\/.*\.\(cue\|iso\|gdi\)" -print0 | xargs -0I{} sh -c 'chdman createcd -i "{}" -o "`basename "{}"`.chd"'