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
d55443e6
Commit
d55443e6
authored
Apr 11, 2007
by
Ian Lynagh
Browse files
Use "$@" rather than $* when calling things in darcs-all
parent
6c30dba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
darcs-all
View file @
d55443e6
...
...
@@ -21,26 +21,26 @@ quiet=NO
message
()
{
if
[
"
$quiet
"
=
"NO"
]
;
then
echo
$*
echo
"
$@
"
fi
}
darcsall
()
{
message
"== running darcs
$
*
at the top level"
darcs
$*
message
"== running darcs
$
@
at the top level"
darcs
"
$@
"
for
dir
in
$top_dirs
;
do
if
test
-d
$dir
-a
-d
$dir
/_darcs
;
then
message
"== running darcs
$
*
in
$dir
"
darcs
$*
--repodir
$dir
message
"== running darcs
$
@
in
$dir
"
darcs
"
$@
"
--repodir
$dir
else
message
"==
$dir
not present or not a repository; skipping"
fi
done
for
pkg
in
`
cat
libraries/core-packages libraries/extra-packages
`
;
do
if
test
-d
libraries/
$pkg
;
then
message
"== running darcs
$
*
in libraries/
$pkg
"
darcs
$*
--repodir
libraries/
$pkg
message
"== running darcs
$
@
in libraries/
$pkg
"
darcs
"
$@
"
--repodir
libraries/
$pkg
else
echo
"warning:
$pkg
doesn't seem to exist, use 'darcs-all get' to get it"
fi
...
...
@@ -62,8 +62,8 @@ darcsget()
echo
"warning: nofib already present; omitting"
else
repo
=
"
$defaultrepo_base
"
/nofib
message
"== running darcs get
$additional_flag
$
*
$repo
"
darcs get
$additional_flag
$*
$repo
message
"== running darcs get
$additional_flag
$
@
$repo
"
darcs get
$additional_flag
"
$@
"
$repo
fi
fi
...
...
@@ -72,8 +72,8 @@ darcsget()
echo
"warning: testsuite already present; omitting"
else
repo
=
"
$defaultrepo_base
"
/testsuite
message
"== running darcs get
$additional_flag
$
*
$repo
"
darcs get
$additional_flag
$*
$repo
message
"== running darcs get
$additional_flag
$
@
$repo
"
darcs get
$additional_flag
"
$@
"
$repo
fi
fi
...
...
@@ -90,8 +90,8 @@ darcsget()
echo
"warning:
$pkg
already present; omitting"
else
repo
=
$defaultrepo_lib
/
$pkg
message
"== running darcs get
$additional_flag
$
*
$repo
"
darcs get
$additional_flag
$*
$repo
message
"== running darcs get
$additional_flag
$
@
$repo
"
darcs get
$additional_flag
"
$@
"
$repo
fi
done
}
...
...
@@ -126,8 +126,8 @@ do
done
case
$1
in
get
)
shift
;
darcsget
$*
;;
get
)
shift
;
darcsget
"
$@
"
;;
# Hack around whatsnew failing if there are no changes
w|wh|wha|what|whats|whatsn|whatsne|whatsnew
)
set
+e
;
darcsall
$*
;;
*
)
darcsall
$*
;;
w|wh|wha|what|whats|whatsn|whatsne|whatsnew
)
set
+e
;
darcsall
"
$@
"
;;
*
)
darcsall
"
$@
"
;;
esac
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