Apple Darwin Manuel d'utilisateur Page 4

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 7
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 3
126
|
Chapter 7: Building the Darwin Kernel
Updating sources
To bring a module into sync with the latest changes to the repository, use
the update command:
cvs -z3 update -P -d modulename
The -d option tells CVS to pick up any directories that were recently added,
and -P tells CVS to prune any directories that were recently removed.
If you use modulename with the update command, you need to
be in the same directory where you originally issued the
checkout command. This will be the parent directory of the
module’s top-level source directory. If you don’t specify a
modulename, CVS will update only the files in and below your
current working directory.
Here is an example session in which a module is checked out, its contents
perused, and its source updated to the latest version:
% cvs checkout testmodule
cvs checkout: Updating testmodule
U testmodule/Makefile
U testmodule/bar.c
U testmodule/foo.c
% cd testmodule/
% ls -l
total 24
drwxr-xr-x 5 bjepson staff 126 Apr 10 13:23 CVS
-rw-r--r-- 1 bjepson staff 3 Apr 10 13:22 Makefile
-rw-r--r-- 1 bjepson staff 2 Apr 10 13:22 bar.c
-rw-r--r-- 1 bjepson staff 2 Apr 10 13:22 foo.c
*** time passes ***
% cvs update -P -d
cvs update: Updating .
U bar.c
% ls -l bar.c
-rw-r--r-- 1 bjepson staff 2 Apr 10 13:23 bar.c
Getting the Right Version
The only version of Darwin that should work with your copy of Mac OS X is
the same one that Apple used. Your mileage may vary if you try to use an
older or newer version. So, before you try anything like that, get the correct
version and use that as a dry run to verify that you can build and install a
working kernel.
,ch07.839 Page 126 Friday, May 6, 2005 1:34 PM
Vue de la page 3
1 2 3 4 5 6 7

Commentaires sur ces manuels

Pas de commentaire