tzdb_to_nx/externals/tz/find_tzif.sh
Jan Beich 6ca7f92b0e Switch to POSIX sh for scripts
- GNU `bash` may not be installed or installed outside of /bin
- *.sh only use `==` from Bash, so /bin/sh is enough
2023-06-23 21:29:48 +00:00

15 lines
215 B
Bash

#/bin/sh
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
echo "$i" >> $tzif_list
fi
done