From 01bd8ac94cc11c086167a2a2d8e7b335f033deca Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Fri, 15 Dec 2017 20:12:00 -0500 Subject: Move old baserom.gbc 'compare' scripts to tools/ --- compare.sh | 11 ----------- compare2.sh | 51 --------------------------------------------------- tools/compare.sh | 11 +++++++++++ tools/compare2.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 62 deletions(-) delete mode 100755 compare.sh delete mode 100755 compare2.sh create mode 100755 tools/compare.sh create mode 100755 tools/compare2.sh diff --git a/compare.sh b/compare.sh deleted file mode 100755 index d013a88ab..000000000 --- a/compare.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Compares baserom.gbc and pokecrystal.gbc - -# create baserom.txt if necessary -if [ ! -f baserom.txt ]; then - hexdump -C baserom.gbc > baserom.txt -fi - -hexdump -C pokecrystal.gbc > pokecrystal.txt - -diff -u baserom.txt pokecrystal.txt | less diff --git a/compare2.sh b/compare2.sh deleted file mode 100755 index 64695229e..000000000 --- a/compare2.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -# Compares baserom.gbc and pokecrystal.gbc - -# create baserom.txt if necessary -crystal_md5=9f2922b235a5eeb78d65594e82ef5dde -if [ ! -f baserom.gbc ]; then - echo "FATAL: Baserom not found" - exit 1 -fi - -if [ $1 ]; then - if [ $1 == "-v" ]; then - verbose=1 - else - verbose = 0 - fi -else - verbose=0 -fi - -base_md5=`md5sum baserom.gbc | cut -d' ' -f1` -if [ $verbose == 1 ]; then - echo "baserom.gbc: $base_md5" -fi -if [ $base_md5 != $crystal_md5 ]; then - echo "FATAL: Baserom is incorrect" - exit 1 -fi - -built_md5=`md5sum pokecrystal.gbc | cut -d' ' -f1` -if [ $verbose == 1 ]; then - echo "pokecrystal.gbc: $built_md5" -fi -if [ $built_md5 != $crystal_md5 ] -then - if [ $verbose == 1 ]; then - echo "Checksums do not match, here's where the ROMs differ..." - fi - if [ ! -f baserom.txt ]; then - hexdump -C baserom.gbc > baserom.txt - fi - - hexdump -C pokecrystal.gbc > pokecrystal.txt - - diff -u baserom.txt pokecrystal.txt | less -else - if [ $verbose == 1 ]; then - echo "Checksums match! :D" - fi -fi - diff --git a/tools/compare.sh b/tools/compare.sh new file mode 100755 index 000000000..d013a88ab --- /dev/null +++ b/tools/compare.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Compares baserom.gbc and pokecrystal.gbc + +# create baserom.txt if necessary +if [ ! -f baserom.txt ]; then + hexdump -C baserom.gbc > baserom.txt +fi + +hexdump -C pokecrystal.gbc > pokecrystal.txt + +diff -u baserom.txt pokecrystal.txt | less diff --git a/tools/compare2.sh b/tools/compare2.sh new file mode 100755 index 000000000..64695229e --- /dev/null +++ b/tools/compare2.sh @@ -0,0 +1,51 @@ +#!/bin/sh +# Compares baserom.gbc and pokecrystal.gbc + +# create baserom.txt if necessary +crystal_md5=9f2922b235a5eeb78d65594e82ef5dde +if [ ! -f baserom.gbc ]; then + echo "FATAL: Baserom not found" + exit 1 +fi + +if [ $1 ]; then + if [ $1 == "-v" ]; then + verbose=1 + else + verbose = 0 + fi +else + verbose=0 +fi + +base_md5=`md5sum baserom.gbc | cut -d' ' -f1` +if [ $verbose == 1 ]; then + echo "baserom.gbc: $base_md5" +fi +if [ $base_md5 != $crystal_md5 ]; then + echo "FATAL: Baserom is incorrect" + exit 1 +fi + +built_md5=`md5sum pokecrystal.gbc | cut -d' ' -f1` +if [ $verbose == 1 ]; then + echo "pokecrystal.gbc: $built_md5" +fi +if [ $built_md5 != $crystal_md5 ] +then + if [ $verbose == 1 ]; then + echo "Checksums do not match, here's where the ROMs differ..." + fi + if [ ! -f baserom.txt ]; then + hexdump -C baserom.gbc > baserom.txt + fi + + hexdump -C pokecrystal.gbc > pokecrystal.txt + + diff -u baserom.txt pokecrystal.txt | less +else + if [ $verbose == 1 ]; then + echo "Checksums match! :D" + fi +fi + -- cgit v1.2.3