diff options
author | Alexis Ballier <aballier@gentoo.org> | 2010-08-04 07:04:10 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2010-08-04 07:04:10 +0000 |
commit | fee9c765298d27a7d7fc960ac399f194e7f3b025 (patch) | |
tree | fb630917cf4e7a6975eb85bd5decc4ca2f9223ca /dev-lang/ocaml/files/ocaml-rebuild.sh | |
parent | version bump (diff) | |
download | gentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.tar.gz gentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.tar.bz2 gentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.zip |
exit nicely if no ocaml package is installed in ocaml-rebuild.sh, by Diego E. 'Flameeyes' Pettenò <flameeyes@gentoo.org>, bug #319553
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/ocaml/files/ocaml-rebuild.sh')
-rw-r--r-- | dev-lang/ocaml/files/ocaml-rebuild.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-lang/ocaml/files/ocaml-rebuild.sh b/dev-lang/ocaml/files/ocaml-rebuild.sh index 4871989f32c5..7dd14a4eb7d2 100644 --- a/dev-lang/ocaml/files/ocaml-rebuild.sh +++ b/dev-lang/ocaml/files/ocaml-rebuild.sh @@ -36,6 +36,11 @@ do tobuildstr="\">=$category/$pkg:$slot\" $tobuildstr" done +if [ "$tobuild" = "" ] ; then + echo "Nothing to do!" + exit 0 +fi + echo Building $tobuildstr if [ $pretend -eq 1 ] |