tzdb_to_nx/externals/tz/find_tzif.sh

15 lines
215 B
Bash
Raw Normal View History

#/bin/sh
2023-05-27 22:54:17 -07:00
set -e
directory=$1
tzif_list=$2
truncate -s 0 $tzif_list
for i in `find $directory -type f`; do
header=`head -c 4 $i`
if [ "$header" = "TZif" ]; then
2023-05-27 22:54:17 -07:00
echo "$i" >> $tzif_list
fi
done