Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f4ab4092
Commit
f4ab4092
authored
Jun 19, 2007
by
Ian Lynagh
Browse files
Add --core-only flag to push-all
parent
8434073f
Changes
1
Hide whitespace changes
Inline
Side-by-side
push-all
View file @
f4ab4092
...
...
@@ -11,6 +11,8 @@ my $ignore_failure = 0;
# --checked-out says we are pushing to a checked out tree
my
$checked_out
=
0
;
# --core-only says we only want to push corelibs, not extralibs
my
$core_only
=
0
;
sub
message
{
if
(
$verbose
)
{
...
...
@@ -45,7 +47,10 @@ sub pushall {
message
"
==
$dir
not present or not a repository; skipping
";
}
}
for
my
$pkg
(`
cat libraries/core-packages libraries/extra-packages
`)
{
my
$library_lists
=
$core_only
?
"
libraries/core-packages
"
:
"
libraries/core-packages libraries/extra-packages
";
for
my
$pkg
(`
cat
$library_lists
`)
{
chomp
$pkg
;
$dir
=
"
libraries/
$pkg
";
if
(
-
d
"
$dir
")
{
...
...
@@ -73,6 +78,9 @@ sub main {
elsif
(
$arg
eq
"
--checked-out
")
{
$checked_out
=
1
;
}
elsif
(
$arg
eq
"
--core-only
")
{
$core_only
=
1
;
}
else
{
$reporoot
=
$arg
;
if
(
grep
/^-q$/
,
@
_
)
{
...
...
Write
Preview
Supports
Markdown
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