From e7f4eaa71703570b3c62cde20f97c5df826a0f41 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 26 Aug 2006 13:38:02 +0000 Subject: Added my simple shell script which I used to batch-update the MD5 table with size information svn-id: r23759 --- tools/scumm-md5.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/scumm-md5.txt b/tools/scumm-md5.txt index d49a67f782..73c98e341f 100644 --- a/tools/scumm-md5.txt +++ b/tools/scumm-md5.txt @@ -36,6 +36,22 @@ # Gerald Vincent silverfo (AT) club-internet (DOT) fr # Peter Eckerlein master (DOT) eckes (AT) web (DOT) de # +# +# +# The following shell script can be used to extract the file sizes of a bunch +# of detect files, autonmatically inserting the values in here: +# +# #!/bin/sh +# OIFS=$IFS +# IFS=" +# " +# for i in `find -name *.??0` `find -name *Data*` ; do +# m=`head -c 1048576 "$i" | md5sum | cut -f1 -d' '` ; +# s=`du -b "$i" | cut -f1` ; +# echo perl -pi -e "s/$m\t-1/$m\t$s/" /PATH/TO/tools/scumm-md5.txt ; +# done +# IFS=$OIFS +# maniac Maniac Mansion d831f7c048574dd9d5d85db2a1468099 -1 en C64 C64 - - c4a7f7398ac9ae588940f9912ea5fd8f -1 de C64 C64 - - -- cgit v1.2.3