diff options
author | des <des@FreeBSD.org> | 2004-06-06 05:26:22 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-06-06 05:26:22 +0800 |
commit | 5902f9fe53bdd91f0caa1573d487a1a09118c3ba (patch) | |
tree | 0f2b6d98cdc581f44b785070933869acf1f2cf9c /CVSROOT | |
parent | ae954df80413f58b7917361add0da428a98f18f2 (diff) | |
download | freebsd-ports-gnome-5902f9fe53bdd91f0caa1573d487a1a09118c3ba.tar.gz freebsd-ports-gnome-5902f9fe53bdd91f0caa1573d487a1a09118c3ba.tar.zst freebsd-ports-gnome-5902f9fe53bdd91f0caa1573d487a1a09118c3ba.zip |
Synch with src repo.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/cfg.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm index 101eb963cbd2..2ab0d18f8987 100755 --- a/CVSROOT/cfg.pm +++ b/CVSROOT/cfg.pm @@ -19,8 +19,9 @@ use vars qw( $FILE_PREFIX $IDHEADER $LAST_FILE @LOG_FILE_MAP $MAILADDRS $MAILBANNER $MAILCMD $MAIL_BRANCH_HDR $MAIL_ON_DIR_CREATION $MAIL_TRANSFORM $MINCVSVERSION $MAX_DIFF_SIZE $NO_DOS_LINEBREAKS $PID $PROG_CVS - $PROG_MV %TEMPLATE_HEADERS $TMPDIR $UNEXPAND_RCSID $WARN_HEADERS + $PROG_MV %TEMPLATE_HEADERS $TMPDIR $TZ $UNEXPAND_RCSID $WARN_HEADERS ); +use POSIX qw(tzset); my $CVSROOT = $ENV{'CVSROOT'} || die "Can't determine \$CVSROOT!"; @@ -55,6 +56,8 @@ $PROG_MV = '/bin/mv'; # mv(1) $COMMITTER = $ENV{"LOGNAME"} || $ENV{'USER'} || getlogin || (getpwuid($<))[0] || sprintf("uid#%d",$<); +# Time zone +$TZ = undef; ################### ### commitcheck ### @@ -279,5 +282,12 @@ eval { require "$CVSROOT/CVSROOT/cfg_local.pm" } if -e "$CVSROOT/CVSROOT/cfg_local.pm"; warn $@ if $@; +if (defined $TZ) { + $ENV{'TZ'} = $TZ; +} else { + delete $ENV{'TZ'}; +} +tzset; + 1; # Perl requires all modules to return true. Don't delete!!!! #end |