8.6.2 Package Installation

Any one can now use file denys-greet.pkg in order to install our package. Let's try it now:

% ozmake --upgrade --package=denys-greet.pkg
mkdir /tmp/fileXc39F9
writing /tmp/fileXc39F9/Greet.oz
ozc -c /tmp/fileXc39F9/Greet.oz -o /tmp/fileXc39F9/Greet.ozf
cp /tmp/fileXc39F9/Greet.ozf /home/denys/.oz/cache/x-ozlib/oz-kurs/examples/Greet.ozf
rm -R /tmp/fileXc39F9

I gave the option argument --upgrade rather than --install because we already installed the package once before (see Section 8.5.1). ozmake creates a temporary directory in which to extract the contents of the package, build it and install it. Finally, it removes the temporary directory when it is done.


Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)