You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
PIXZ=../src/pixz
|
|
|
|
INPUT=$(basename $0)
|
|
|
|
COMPRESSED=$INPUT.xz
|
|
UNCOMPRESSED=$INPUT.extracted
|
|
trap "rm -f $COMPRESSED $UNCOMPRESSED" EXIT
|
|
|
|
$PIXZ $INPUT $COMPRESSED
|
|
$PIXZ -d $COMPRESSED $UNCOMPRESSED
|
|
|
|
[ "$(cat $INPUT | md5sum)" = "$(cat $UNCOMPRESSED | md5sum)" ] || exit 1
|