[BACK]Return to maketz.sh CVS log [TXT][DIR] Up to [local] / src / distrib / miniroot

File: [local] / src / distrib / miniroot / maketz.sh (download)

Revision 1.4, Fri May 3 14:28:58 2019 UTC (5 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.3: +4 -4 lines

During debugging, media are often built without DESTDIR correctly set.
Such media are not entirely accurate -- that's fine.  However one case
is very bad -- the TZ tree is entirely skipped, resulting in artificially
smaller media and confusion.  Just assume DESTDIR=/ for that case...

#!/bin/sh

if [ $# -lt 1 ]; then
	destdir=/
	echo 'warning: using DESTDIR=/'
else
	destdir=$1
fi

(
	cd $destdir/usr/share/zoneinfo
	ls -1dF `tar cvf /dev/null [A-Za-y]*`
) > var/tzlist