mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add md5sum to dict header, summing not the whole file but the parts
that make the wordlist unique: tile counts and values, and bitmaps, and the data. This happens to be contiguous data on non-palm .xwd files so it's easy to duplicate if the sum isn't there.
This commit is contained in:
parent
fa90150055
commit
0b81516682
1 changed files with 6 additions and 1 deletions
|
@ -280,7 +280,12 @@ $(XWLANG)%_note.bin:
|
|||
echo -n $(DICTNOTE) > $@
|
||||
perl -e "print pack(\"c\",0)" >> $@
|
||||
|
||||
$(XWLANG)%_newheader.bin: $(XWLANG)%_wordcount.bin $(XWLANG)%_note.bin
|
||||
$(XWLANG)%_md5sum.bin:
|
||||
cat table.bin values.bin frankspecials.bin $(XWLANG)StartLoc.bin \
|
||||
dawg$(XWLANG)$*_*.bin | md5sum | awk '{print $$1}' | tr -d '\n' > $@
|
||||
perl -e "print pack(\"c\",0)" >> $@
|
||||
|
||||
$(XWLANG)%_newheader.bin: $(XWLANG)%_wordcount.bin $(XWLANG)%_note.bin $(XWLANG)%_md5sum.bin
|
||||
SIZ=0; \
|
||||
for FILE in $+; do \
|
||||
SIZ=$$(($$SIZ + $$(ls -l $$FILE | awk '{print $$5}'))); \
|
||||
|
|
Loading…
Add table
Reference in a new issue