2013-10-14 11:12:34 +02:00
|
|
|
#
|
2014-05-07 04:11:21 +02:00
|
|
|
# Initializes OCaml package management.
|
2013-10-14 11:12:34 +02:00
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sebastian Wiesner <lunaryorn@gmail.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
# Return if requirements are not found.
|
|
|
|
if (( ! $+commands[opam] )); then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Initialize OPAM.
|
|
|
|
eval "$(opam config env)"
|