ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/oni2aslpt/o2aslpt.sh
(Generate patch)

Comparing oni2aslpt/o2aslpt.sh (file contents):
Revision 1104 by iritscen, Mon Feb 19 14:52:05 2018 UTC vs.
Revision 1106 by iritscen, Mon Feb 19 14:58:08 2018 UTC

# Line 6 | Line 6 | MD5_LAST32="c5e46781d21cd4414e92d9150251
6  
7   echo "Welcome to the Oni 2 (Angel Studios) Layout Patch Tool."
8  
9 < if [ -z $1 ]; then
9 > if [ -z "$1" ]; then
10     echo "You need to pass me the path to your ISO of Oni 2. Exiting."
11     exit
12   fi
# Line 44 | Line 44 | if [ -z "$the_answer" ]; then
44     exit
45   elif [ "$the_answer" == "1" ]; then
46     echo "Creating patched version..."
47 <   ./xdelta3mac.exe -ds "$1" patchFromVanTo63.x3d ./oni2dev_ps2_first63layouts.iso
47 >   ./xdelta3mac.exe -ds "$1" patchFromVanTo63.xd3 ./oni2dev_ps2_first63layouts.iso
48     echo "Verifying checksum...."
49     MD5_OUTPUT=$(md5 ./oni2dev_ps2_first63layouts.iso)
50     MD5_OUTPUT=${MD5_OUTPUT#*= }
# Line 54 | Line 54 | elif [ "$the_answer" == "1" ]; then
54     fi
55   elif [ "$the_answer" == "2" ]; then
56     echo "Creating patched version..."
57 <   ./xdelta3mac.exe -ds "$1" patchFromVanTo32.x3d ./oni2dev_ps2_last32layouts.iso
57 >   ./xdelta3mac.exe -ds "$1" patchFromVanTo32.xd3 ./oni2dev_ps2_last32layouts.iso
58     echo "Verifying checksum...."
59     MD5_OUTPUT=$(md5 ./oni2dev_ps2_last32layouts.iso)
60     MD5_OUTPUT=${MD5_OUTPUT#*= }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)