Primera prueba
This commit is contained in:
+12
-12
@@ -7,22 +7,22 @@
|
|||||||
#sudo apt-get install -y mame-tools p7zip-full
|
#sudo apt-get install -y mame-tools p7zip-full
|
||||||
|
|
||||||
#extract 7z
|
#extract 7z
|
||||||
for x7zFile in *.7z; do
|
for x7zFile in *.7z; do
|
||||||
gameName="$(basename "$x7zFile" .7z)"
|
gameName="$(basename "$x7zFile" .7z)"
|
||||||
echo "!!!!!!!!!!Extracting ${gameName}..."
|
echo "!!!!!!!!!!Extracting ${gameName}..."
|
||||||
7z x "${x7zFile}" -o./"${gameName}-tmp"
|
7z x "${x7zFile}" -o./"${gameName}-tmp"
|
||||||
|
|
||||||
#convet to chd
|
#convet to chd
|
||||||
echo "!!!!!!!!!!Converting ${gameName}..."
|
echo "!!!!!!!!!!Converting ${gameName}..."
|
||||||
chdman createcd -i "./${gameName}-tmp/${gameName}cue" -o ./"${gameName}.chd"
|
chdman createcd -i "./${gameName}-tmp/${gameName}cue" -o ./"${gameName}.chd"
|
||||||
|
|
||||||
#rm temporary directory
|
#rm temporary directory
|
||||||
rm -R ./"${gameName}-tmp"
|
rm -R ./"${gameName}-tmp"
|
||||||
|
|
||||||
### uncomment below to rm the original 7z archive
|
### uncomment below to rm the original 7z archive
|
||||||
# rm ./"$x7zFile"
|
#rm ./"$x7zFile"
|
||||||
|
|
||||||
echo "!!!!!!!!!!${gameName} complete..."
|
echo "!!!!!!!!!!${gameName} complete..."
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user