#! /bin/bash if [ $# -ne 2 ] then echo "usage: $0 directory output-file" exit 1 fi if [ "$CPIO" = "" ] then CPIO=/bin/cpio fi if ! $CPIO --version then echo "Exiting" exit 1 fi find $1 -depth -type f \! -name "*.tab" \ \! -name "Factory" \ \! -name "localtime" \ \! -name "posixrules" \ \! -name "leapseconds" \ \! -name "tzdata.zi" \ -print | sort | $CPIO -ocB --quiet | gzip --best > $2