aboutsummaryrefslogtreecommitdiff
path: root/crc32
blob: 1adfa3b13b914b7abf3ae7bc1a3bcb78935a733d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Horribly inefficient way to calculate crc32 of a file.

Z=/tmp/crc32hack.$$.$RANDOM.zip
rm -f $Z
zip -q $Z "$1"
zipinfo -v $Z | grep CRC | sed 's,.*  ,,'
rm -f $Z