Skip to content

Commit

Permalink
Use SHA1 to compare roms
Browse files Browse the repository at this point in the history
  • Loading branch information
yenatch committed Jun 24, 2017
1 parent 866ca63 commit f12e42a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Makefile
@@ -1,4 +1,8 @@
MD5 := md5sum -c
ifeq (,$(shell which sha1sum))
SHA1 := shasum
else
SHA1 := sha1sum
endif

.SUFFIXES:
.PHONY: all clean tools compare crystal crystal11
Expand Down Expand Up @@ -36,7 +40,7 @@ clean:
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)

compare: $(roms)
@$(MD5) roms.md5
@$(SHA1) -c roms.sha1

tools:
make -C tools/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -4,8 +4,8 @@ This is a disassembly of Pokémon Crystal.

It builds the following roms:

* Pokemon - Crystal Version (UE) (V1.0) [C][!].gbc `md5: 9f2922b235a5eeb78d65594e82ef5dde`
* Pokemon - Crystal Version (UE) (V1.1) [C][!].gbc `md5: 301899b8087289a6436b0a241fbbb474`
* Pokemon - Crystal Version (UE) (V1.0) [C][!].gbc `sha1: f4cd194bdee0d04ca4eac29e09b8e4e9d818c133`
* Pokemon - Crystal Version (UE) (V1.1) [C][!].gbc `sha1: f2f52230b536214ef7c9924f483392993e226cfb`

To set up the repository, see [**INSTALL.md**](INSTALL.md).

Expand Down
2 changes: 0 additions & 2 deletions roms.md5

This file was deleted.

2 changes: 2 additions & 0 deletions roms.sha1
@@ -0,0 +1,2 @@
f4cd194bdee0d04ca4eac29e09b8e4e9d818c133 *pokecrystal.gbc
f2f52230b536214ef7c9924f483392993e226cfb *pokecrystal11.gbc

0 comments on commit f12e42a

Please sign in to comment.