Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b16c251e
Commit
b16c251e
authored
Nov 11, 2003
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/cvs-update.sh should be in Perl. r=zach, a=justdave
parent
f31394af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
cvs-update.pl
contrib/cvs-update.pl
+13
-8
No files found.
contrib/cvs-update.
sh
→
contrib/cvs-update.
pl
View file @
b16c251e
#!/bin/sh
#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
#
# The contents of this file are subject to the Mozilla Public
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# License Version 1.1 (the "License"); you may not use this file
...
@@ -19,7 +20,7 @@
...
@@ -19,7 +20,7 @@
#
#
# Contributor(s): Dawn Endico <endico@mozilla.org>
# Contributor(s): Dawn Endico <endico@mozilla.org>
# Jacob Steenhagen <jake@bugzilla.org>
# Jacob Steenhagen <jake@bugzilla.org>
# Jouni Heikniemi <jouni@heikniemi.net>
# Keep a record of all cvs updates made from a given directory.
# Keep a record of all cvs updates made from a given directory.
#
#
...
@@ -28,16 +29,20 @@
...
@@ -28,16 +29,20 @@
# out to. (Probably the second to last entry).
# out to. (Probably the second to last entry).
# Because this script lives in contrib, you may want to
# Because this script lives in contrib, you may want to
# ln -s contrib/cvs-update.
sh cvs-update
# ln -s contrib/cvs-update.
pl cvs-update.pl
# from your bugzilla install directory so you can run
# from your bugzilla install directory so you can run
# the script easily from there (./cvs-update)
# the script easily from there (./cvs-update
.pl
)
#DATE=`date +%e/%m/%Y\ %k:%M:%S\ %Z`
#DATE=`date +%e/%m/%Y\ %k:%M:%S\ %Z`
DATE
=
`
date
`
COMMAND
=
"cvs -q update -dP"
echo
$COMMAND
-D
\"
$DATE
\"
>>
cvs-update.log
$COMMAND
-A
my
(
$second
,
$minute
,
$hour
,
$day
,
$month
,
$year
)
=
gmtime
;
my
$date
=
sprintf
(
"%04d-%02d-%02d %d:%02d:%02dZ"
,
$year
+
1900
,
$month
+
1
,
$day
,
$hour
,
$minute
,
$second
);
my
$cmd
=
"cvs -q update -dP"
;
open
LOG
,
">>cvs-update.log"
or
die
(
"Couldn't open cvs update log!"
);
print
LOG
"$cmd -D \"$date\"\n"
;
close
LOG
;
system
(
"$cmd -A"
);
# sample log file
# sample log file
#cvs update -P -D "11/04/2000 20:22:08 PDT"
#cvs update -P -D "11/04/2000 20:22:08 PDT"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment