Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
1326db6c
Commit
1326db6c
authored
18 years ago
by
silver%warwickcompsoc.co.uk
Browse files
Options
Downloads
Patches
Plain Diff
Bug 329070 - Support -l (no recursive) mode with fact-update. r=benjamin
parent
a7f77479
No related branches found
Branches containing commit
Tags
mb-12.0.5-build1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
client.mk
+3
-1
3 additions, 1 deletion
client.mk
config/cvsco-fast-update.pl
+8
-2
8 additions, 2 deletions
config/cvsco-fast-update.pl
config/fast-update.pl
+7
-4
7 additions, 4 deletions
config/fast-update.pl
with
18 additions
and
7 deletions
client.mk
+
3
−
1
View file @
1326db6c
...
@@ -114,8 +114,10 @@ AVAILABLE_PROJECTS = \
...
@@ -114,8 +114,10 @@ AVAILABLE_PROJECTS = \
macbrowser
\
macbrowser
\
$(
NULL
)
$(
NULL
)
# Trailing / on top-level mozilla dir required to stop fast-update thinking
# it is a module name.
MODULES_NS_core
:=
\
MODULES_NS_core
:=
\
mozilla
\
mozilla
/
\
mozilla/js
\
mozilla/js
\
mozilla/js/src
\
mozilla/js/src
\
mozilla/js/jsd
\
mozilla/js/jsd
\
...
...
This diff is collapsed.
Click to expand it.
config/cvsco-fast-update.pl
+
8
−
2
View file @
1326db6c
...
@@ -13,6 +13,7 @@ my $start_time = time();
...
@@ -13,6 +13,7 @@ my $start_time = time();
my
$branch
;
my
$branch
;
my
@modules
;
my
@modules
;
my
@dirs
;
my
@dirs
;
my
$dirlocal
=
0
;
print
"
$0: (
"
.
join
('
)(
',
@ARGV
)
.
"
)
\n
";
print
"
$0: (
"
.
join
('
)(
',
@ARGV
)
.
"
)
\n
";
while
(
scalar
(
@ARGV
))
{
while
(
scalar
(
@ARGV
))
{
...
@@ -32,6 +33,11 @@ while (scalar(@ARGV)) {
...
@@ -32,6 +33,11 @@ while (scalar(@ARGV)) {
#print "branch = $branch\n";
#print "branch = $branch\n";
next
;
next
;
}
}
elsif
(
$val
eq
'
-l
')
{
$dirlocal
=
1
;
#print "dirlocal = $dirlocal\n";
next
;
}
elsif
(
$val
=~
/^-/
)
{
elsif
(
$val
=~
/^-/
)
{
print
"
*** unknown switch:
$val
\n
";
print
"
*** unknown switch:
$val
\n
";
exit
1
;
exit
1
;
...
@@ -57,12 +63,12 @@ if (!$branch) {
...
@@ -57,12 +63,12 @@ if (!$branch) {
my
$status
=
0
;
my
$status
=
0
;
foreach
my
$mod
(
@modules
)
{
foreach
my
$mod
(
@modules
)
{
my
$cmd
=
"
config/fast-update.pl -r
$branch
-m
$mod
";
my
$cmd
=
"
config/fast-update.pl -r
$branch
-m
$mod
"
.
(
$dirlocal
?
"
-l
"
:
"")
;
#print "system \"$cmd\"\n";
#print "system \"$cmd\"\n";
$status
|=
system
$cmd
;
$status
|=
system
$cmd
;
}
}
foreach
my
$d
(
@dirs
)
{
foreach
my
$d
(
@dirs
)
{
my
$cmd
=
"
config/fast-update.pl -r
$branch
-d
$d
-m all
";
my
$cmd
=
"
config/fast-update.pl -r
$branch
-d
$d
-m all
"
.
(
$dirlocal
?
"
-l
"
:
"")
;
#print "system \"$cmd\"\n";
#print "system \"$cmd\"\n";
$status
|=
system
$cmd
;
$status
|=
system
$cmd
;
}
}
...
...
This diff is collapsed.
Click to expand it.
config/fast-update.pl
+
7
−
4
View file @
1326db6c
...
@@ -25,10 +25,11 @@ my $maxdirs=5;
...
@@ -25,10 +25,11 @@ my $maxdirs=5;
my
$rootdir
=
"";
my
$rootdir
=
"";
my
$hours
=
0
;
my
$hours
=
0
;
my
$dir
=
'';
my
$dir
=
'';
my
$dirlocal
=
0
;
&GetOptions
('
d=s
'
=>
\
$dir
,
'
h=s
'
=>
\
$hours
,
'
m=s
'
=>
\
$module
,
'
r=s
'
=>
\
$branch
);
&GetOptions
('
d=s
'
=>
\
$dir
,
'
h=s
'
=>
\
$hours
,
'
m=s
'
=>
\
$module
,
'
r=s
'
=>
\
$branch
,
'
l
'
=>
\
$dirlocal
);
#print "dir = ($dir), hours = ($hours), module = ($module), branch = ($branch)\n";
#print "dir = ($dir), hours = ($hours), module = ($module), branch = ($branch)
, dirlocal = ($dirlocal)
\n";
if
(
$dir
)
{
if
(
$dir
)
{
chdir
'
..
';
chdir
'
..
';
chdir
$dir
;
chdir
$dir
;
...
@@ -106,6 +107,7 @@ print "Contacting bonsai for updates to ${module} ";
...
@@ -106,6 +107,7 @@ print "Contacting bonsai for updates to ${module} ";
print
"
on the
${branch}
branch
"
if
(
$branch
);
print
"
on the
${branch}
branch
"
if
(
$branch
);
print
"
in the last
${hours}
hours
";
print
"
in the last
${hours}
hours
";
print
"
within the
$rootdir
directory..
\n
"
if
(
$rootdir
);
print
"
within the
$rootdir
directory..
\n
"
if
(
$rootdir
);
print
"
\n
"
unless
(
$rootdir
);
#print "url = $url\n";
#print "url = $url\n";
# first try wget, then try lynx, then try curl
# first try wget, then try lynx, then try curl
...
@@ -167,7 +169,8 @@ foreach $dir (sort @dirlist) {
...
@@ -167,7 +169,8 @@ foreach $dir (sort @dirlist) {
if
(
$dir
eq
$rootdir
)
{
if
(
$dir
eq
$rootdir
)
{
$strippeddir
=
"
.
";
$strippeddir
=
"
.
";
}
else
{
}
elsif
(
!
$dirlocal
)
{
# for local-only updates, skip all sub-dirs
$strippeddir
=
substr
(
$dir
,(
length
$rootdir
)
+
1
);
$strippeddir
=
substr
(
$dir
,(
length
$rootdir
)
+
1
);
}
}
...
@@ -183,7 +186,7 @@ foreach $dir (sort @dirlist) {
...
@@ -183,7 +186,7 @@ foreach $dir (sort @dirlist) {
my
$status
=
0
;
my
$status
=
0
;
if
(
scalar
(
@uniquedirs
))
{
if
(
scalar
(
@uniquedirs
))
{
print
"
Updating tree..
($#
uniquedirs directories)
\n
";
print
"
Updating tree..
. (
"
.
scalar
(
@
uniquedirs
)
.
"
directories)
\n
";
my
$i
=
0
;
my
$i
=
0
;
my
$dirlist
=
"";
my
$dirlist
=
"";
foreach
$dir
(
sort
@uniquedirs
)
{
foreach
$dir
(
sort
@uniquedirs
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment