modified: convert_to_gdi_then_to_chd.sh
new file: docker_command.sh modified: get-gdi-conversion.sh
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
# use with convert_cue_chd.sh */.
|
# use with convert_cue_chd.sh */.
|
||||||
|
|
||||||
# output_directory is the directory where the unarchived folders will go
|
# output_directory is the directory where the unarchived folders will go
|
||||||
output_directory=./out
|
output_directory=../out
|
||||||
mkdir -p "$output_directory"
|
mkdir -p "$output_directory"
|
||||||
i=1
|
i=1
|
||||||
for FOLDER in "$@";
|
for FOLDER in "$@";
|
||||||
@@ -28,14 +28,13 @@ for FOLDER in "$@";
|
|||||||
outpath="$output_directory/$outname"
|
outpath="$output_directory/$outname"
|
||||||
##touch "./out/${fi%%.*}.new"
|
##touch "./out/${fi%%.*}.new"
|
||||||
|
|
||||||
if [ ! -d "$outpath" ]; then
|
if [ ! -f "$outpath" ]; then
|
||||||
echo "Input file: $filename"
|
echo "Input file: $filename"
|
||||||
echo "Output path: $outpath"
|
echo "Output path: $outpath"
|
||||||
echo $'\n'
|
echo $'\n'
|
||||||
gdi-conversion-linux -c "$INFILE"
|
./gdi-conversion-linux -c "$INFILE"
|
||||||
chdman createcd -i "$FOLDER/output/*.gdi" -o "$outpath"
|
chdman createcd -i "$FOLDER/output/disc.gdi" -o "$outpath"
|
||||||
# 7z x "$FILE" -aos -bb1 -o"$outpath"
|
rm -r "$FOLDER/output"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "$outpath exists... skipping"
|
echo "$outpath exists... skipping"
|
||||||
fi
|
fi
|
||||||
|
|||||||
1
docker_command.sh
Normal file
1
docker_command.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
docker exec -d -w "/volume2/chd-conversion" python sh -c "./convert_to_gdi_then_to_chd.sh ../dc-out/Tony\ Hawk*/ > log.txt"
|
||||||
@@ -6,4 +6,5 @@
|
|||||||
|
|
||||||
# Usage: $ ./get-gdi-conversion.sh
|
# Usage: $ ./get-gdi-conversion.sh
|
||||||
|
|
||||||
wget -i https://github.com/sirconan/gdi-conversion/releases/download/1.2.0/gdi-conversion-linux-v1.2.0 -o gdi-conversion-linux
|
wget https://github.com/sirconan/gdi-conversion/releases/download/1.2.0/gdi-conversion-linux-v1.2.0 -O gdi-conversion-linux
|
||||||
|
chmod +x gdi-conversion-linux
|
||||||
Reference in New Issue
Block a user