This commit is contained in:
2021-01-31 23:15:36 +01:00
parent 302f4d4953
commit 80d83da69b
10 changed files with 0 additions and 1330 deletions
-29
View File
@@ -1,29 +0,0 @@
#!/bin/bash
###place this script into root folder that contains .7z PSX archives
###may need to chmod +x file to make executable
###uncomment below if required software not on system
#sudo apt-get install -y mame-tools p7zip-full
#extract 7z
for x7zFile in *.7z; do
gameName="$(basename "$x7zFile" .7z)"
echo "!!!!!!!!!!Extracting ${gameName}..."
7z x "${x7zFile}" -o./"${gameName}-tmp"
#convet to chd
echo "!!!!!!!!!!Converting ${gameName}..."a
chdman createcd -i "./${gameName}-tmp/${gameName}cue" -o ./"${gameName}.chd"
#rm temporary directory
rm -R ./"${gameName}-tmp"
### uncomment below to rm the original 7z archive
#rm ./"$x7zFile"
echo "!!!!!!!!!!${gameName} complete..."
done
echo "All done."