Getting Started/Sources/Snapshots (gl)

< Getting Started‎ | Sources
Revision as of 15:34, 13 August 2007 by Juanchinho (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
noframe
 
Note
Traducindose dende o inglés...
Instantáneas diarias do repositorio
Serie do tutorial   Empezando...
Prerequerimentos   None
Seguinte   Compilando KDE4
Máis información   Guía simple de acceso anónimo ao SVN
Productividade mellorada con guións de shell en KDE 4
Introdución a CMake

Se estás intentando obter o código dun módulo de KDE, entonces hai un xeito de facer o, normalmente lento, proceso de obtelo, bastante máis rápido, grazas as instantáneas automaticamente xeradas do repositorio de KDE, que se atopa convenientemente almaceado no FTP de KDE. Esta páxina describe como realizar unha obtención ("checkout" en adiante) usando unha instantánea modular.

Ten en conta que estas instantáneas son checkouts reais de subversion contendo toda a metadata requerida por SVN. Este método é, de feito, a maneira máis rápida de obter un modulo, grazas á abundancia de servidores ventá de FTP.

noframe
 
Note
Este método somentes funciona se o modulo que ti queres foi xerado pola noite (a maioria deles foino), e se queres a versión troncal do módulo.

Obter a instantánea

Primeiro vai a O redireccionador de servidores ventás de KDE e elixe o mellor servidor FTP segundo a túa localización. Normalmente este será un servidor do teu país ou estado. Fai click na ligazón do servidor FTP e navega ao directorio snapshots. Neste directorio haberá unha larga lista de módulos arquivados.

Se queres descarregar o módulo co seguinte formato: kdemodule-svn.tar.bz2. Segue adiante e grava ese arquivo nalgures no teu disco duro. Deberás ser quen de chegar ate esa ruta dende a liña de comandos.

noframe
 
Note
It is important to get the module with the -svn in the file name. There are other types of snapshots also in the same directory for each module. But only modules with -svn contain the necessary information to allow for completing a checkout.

The Recipe

Now for the checkout, go ahead and open a terminal shell and perform the following steps:

cs # cs is not a typo
tar xvjf /path/to/kdemodule-svn.tar.bz2
cd kdemodule
svn revert -R . # This step restores the missing files.
svn up          # This step updates the source to the latest code, and is optional.

Extra Tidbits

That's it! You've got a valid KDE module checkout now. Some things to keep in mind:

  • Each module snapshot contains a special README.svn-nightly file containing information on how to use the snapshot. You've already performed the svn revert and update steps.
  • The modules are already setup to update from the KDE anonymous Subversion repository (svn://anonsvn.kde.org/). If this is not correct for you (i.e. you're a developer), then you can use the svn switch command to fix the checkout as described in the README.svn-nightly file.
    • Switch to the module source directory (cs <moduleName>)
    • If you use Subversion over SSH, run svn switch --relocate svn://anonsvn.kde.org svn+ssh://<user>@svn.kde.org
    • If you use Subversion over HTTPS, run svn switch --relocate svn://anonsvn.kde.org https://<user>@svn.kde.org
    • (The way this works is that svn switch --relocate rewrites the Subversion metadata in the module, replacing the first substring (svn://anonsvn.kde.org) in the repository URL with the second substring (svn+ssh: or https:). This is done locally without any contact to the repository required.
  • If you want to keep the module up to date in the future, just run svn up as you would for any other Subversion checkout. You do not have to continue downloading snapshots just to update the module, and to do so would be inefficient and slow.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal