- if [ x"$infile1/../$infile2" = x"$lastinfiles" ]; then
- sum=$lastinfileshash
- else
- evil=false
- for infile in "$infile1" "$infile2"; do
- case "$infile" in
- */background_l2.tga|*/background_ingame_l2.tga)
- evil=true
- ;;
- esac
- done
- if [ -n "$git_src_repo" ] && ! $evil; then
- sum=
- use_magnet_to_acquire_checksum_faster "${infile1#./}"
- if [ -n "$infile2" ]; then
- use_magnet_to_acquire_checksum_faster "${infile2#./}"
- fi
- else
- sum=`git hash-object "$infile1"`
- if [ -n "$infile2" ]; then
- sum=$sum`git hash-object "$infile2"`
- fi
- fi
- lastinfileshash=$sum
- fi