blob: 9c11cadccfde0b70c55fb71feb35a130d7803813 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
destdir=$1
if [ $# -lt 1 ]; then
echo usage: maketz.sh DESTDIR
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
|