Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
d4ecd3d0
Commit
d4ecd3d0
authored
Jul 24, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow darcs-all changes in push-all
parent
cc002579
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
+30
-26
push-all
push-all
+30
-26
No files found.
push-all
View file @
d4ecd3d0
...
...
@@ -2,8 +2,6 @@
use
strict
;
my
@top_dirs
=
("
nofib
",
"
testsuite
");
my
$reporoot
;
my
$verbose
=
1
;
...
...
@@ -11,8 +9,6 @@ my $ignore_failure = 0;
# --checked-out says we are pushing to a checked out tree
my
$checked_out
=
0
;
# --boot-only says we only want to push bootlibs, not extralibs
my
$boot_only
=
0
;
# --push or --pull or --send?
my
$push_pull_send
=
"
push
";
...
...
@@ -39,29 +35,40 @@ sub darcs_push {
sub
pushall
{
my
$dir
;
my
$localpath
;
my
$remotepath
;
my
$path
;
my
$tag
;
my
$ghcrepo
=
$checked_out
?
$reporoot
:
"
$reporoot
/ghc
";
darcs_push
(
$ghcrepo
,
@
_
);
for
$dir
(
@top_dirs
)
{
if
(
-
d
$dir
&&
-
d
"
$dir
/_darcs
")
{
darcs_push
("
$reporoot
/
$dir
",
@
_
,
"
--repodir
",
$dir
);
}
else
{
message
"
==
$dir
not present or not a repository; skipping
";
}
}
my
$library_lists
=
$boot_only
?
"
libraries/boot-packages
"
:
"
libraries/boot-packages libraries/extra-packages
";
for
my
$pkg
(`
cat
$library_lists
`)
{
chomp
$pkg
;
$dir
=
"
libraries/
$pkg
";
if
(
-
d
"
$dir
")
{
darcs_push
("
$reporoot
/
$dir
",
@
_
,
"
--repodir
",
"
$dir
");
}
else
{
warning
("
$pkg
doesn't exist, use 'darcs-all get' to get it
");
open
IN
,
"
< packages
"
or
die
"
Can't open packages file
";
while
(
<
IN
>
)
{
chomp
;
if
(
/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/
)
{
$localpath
=
$
1
;
$tag
=
defined
(
$
2
)
?
$
2
:
"";
$remotepath
=
$
3
;
if
(
$checked_out
)
{
$path
=
"
$reporoot
/
$localpath
";
}
else
{
$path
=
"
$reporoot
/
$remotepath
";
}
if
(
-
d
"
$localpath
/_darcs
")
{
darcs_push
(
$path
,
@
_
,
"
--repodir
",
$localpath
);
}
elsif
(
$tag
eq
"")
{
message
"
== Required repo
$localpath
is missing! Skipping
";
}
else
{
message
"
==
$localpath
repo not present; skipping
";
}
}
}
close
IN
;
}
sub
main
{
...
...
@@ -83,9 +90,6 @@ sub main {
elsif
(
$arg
eq
"
--checked-out
")
{
$checked_out
=
1
;
}
elsif
(
$arg
eq
"
--boot-only
")
{
$boot_only
=
1
;
}
elsif
(
$arg
eq
"
--push
")
{
$push_pull_send
=
"
push
";
}
...
...
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