summaryrefslogtreecommitdiff
path: root/distrib/miniroot/maketz.sh
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2009-05-07 03:43:03 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2009-05-07 03:43:03 +0000
commitcaafa8002519442d0d9a9929c9dcce73c0576c5f (patch)
tree5acade7d6a525909e43bb942786efec771ced646 /distrib/miniroot/maketz.sh
parent88a3f270fc80192ef8689fa03b9ac260c39cd66b (diff)
o use 'ls -C' to speed and simplify both sets viewing and timezone selection
o use a tzlist instead of a tzdir o as a bonus, sets lists are now sorted top-down instead of left-right o use stty to calculate 4char padding surrounding sets lists collaboration with Alexander Hall halex@ ok deraadt@
Diffstat (limited to 'distrib/miniroot/maketz.sh')
-rw-r--r--distrib/miniroot/maketz.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/distrib/miniroot/maketz.sh b/distrib/miniroot/maketz.sh
index 9c11cadccfd..d0b3c709129 100644
--- a/distrib/miniroot/maketz.sh
+++ b/distrib/miniroot/maketz.sh
@@ -7,10 +7,7 @@ if [ $# -lt 1 ]; then
exit 0
fi
-mkdir -p var/tzdir
-cd var/tzdir
-
-touch FOO
-(cd $destdir/usr/share/zoneinfo; find . -type d -print0) | xargs -0 mkdir -p
-(cd $destdir/usr/share/zoneinfo; find . -type f -print0) | xargs -0 -n 1 ln FOO
-rm FOO
+(
+ cd $destdir/usr/share/zoneinfo
+ ls -1dF `tar cvf /dev/null [A-Za-y]*`
+) > var/tzlist