Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv27059/scripts
Modified Files:
Tag: rel-1-2-patches
build-iso
Added Files:
Tag: rel-1-2-patches
tz
Log Message:
update zoneinfo files for North America daylight savings change
--- NEW FILE: tz ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/Attic/tz,v $
# $Revision: 1.1.2.1 $
# $Date: 2007/02/27 02:13:51 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: tz
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ $(basename $(pwd)) != tz ]; then
mkdir $WORKDIR/tz || exit 1
cd $WORKDIR/tz || exit 1
for tz in $SRCDIR/special/tz{data,code}*.tar.gz
do
tar -xzf $tz
done
fi
rm -fr $WORKDIR/tzdata
mkdir $WORKDIR/tzdata || exit 1
[ ! -d /usr/share/zoneinfo.orig ] && mv /usr/share/zoneinfo /usr/share/zoneinfo.orig
rm -fr /usr/share/zoneinfo
mkdir -p /usr/share/zoneinfo
make TZDIR=/usr/share/zoneinfo TOPDIR=$WORKDIR/tzdata install || exit 1
cd /usr/share || exit 1
mv zoneinfo-posix zoneinfo/posix || exit 1
mv zoneinfo-leaps zoneinfo/leaps || exit 1
;;
install )
cd $WORKDIR/tzdata/ || exit 1
copy_man ./man
cd $WORKDIR/tzdata/etc/ || exit 1
rm -f $CDDIR/usr/bin/tzselect $CDDIR/usr/sbin/{zic,zdump}
cp -f tzselect $CDDIR/usr/bin || exit 1
cp -f zic zdump $CDDIR/usr/sbin || exit 1
rm -fr $CDDIR/usr/share/zoneinfo*
cd /usr/share || exit 1
cp -dpPR zoneinfo $CDDIR/usr/share/ || exit 1
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
Index: build-iso
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/build-iso,v
retrieving revision 1.65.2.4
retrieving revision 1.65.2.5
diff -u -d -r1.65.2.4 -r1.65.2.5
--- build-iso 8 Sep 2006 15:48:02 -0000 1.65.2.4
+++ build-iso 27 Feb 2007 02:13:51 -0000 1.65.2.5
@@ -97,6 +97,8 @@
# now we need to restore the files which shouldn't be compressed
cp -fdp $CDDIR/* $CDDIR.z/ &> /dev/null
cp -fdpR $CDDIR/boot $CDDIR.z/ || exit 1
+ rm -fr $CDDIR.z/usr/share/zoneinfo
+ cp -fdpR $CDDIR/usr/share/zoneinfo $CDDIR.z/usr/share || exit 1
if [ -d $CDDIR/doc ]; then
cp -fdpR $CDDIR/doc $CDDIR.z/ || exit 1
fi
|