Difference between revisions of "Getting Started/Sources/Snapshots (ro)"

Jump to: navigation, search
(New page: {{Template:I18n/Language Navigation Bar|Getting Started/Sources/Snapshots}} {{TutorialBrowser| series=Getting Started| name=Getting the Source using Snapshots| next=[[../../Build/KDE4|B...)
 
Line 4: Line 4:
 
series=Getting Started|
 
series=Getting Started|
  
name=Getting the Source using Snapshots|
+
name=Extragerea surselor KDE din copii arhivate|
  
next=[[../../Build/KDE4|Building KDE4]]|
+
next=[[../../Build/KDE4|Compilarea KDE 4]]|
  
reading=[[../../Sources/Anonymous_SVN|Anonymous SVN Quickstart Guide]]<br>[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]<br>[[Development/Tutorials/CMake |Introduction to CMake]]|
+
reading=[[../../Sources/Anonymous_SVN|Ghid de acces la depozitul KDE]]<br>[[../../Increased_Productivity_in_KDE4_with_Scripts|Creşterea productivităţii în KDE 4 folosind scripturi]]<br>[[Development/Tutorials/CMake |Introducere in folosirea utilitarului CMake]]|
 
}}
 
}}
  
If you are trying to checkout a KDE source module, then there is a way to make the normally slow process of the initial checkout happen a lot quicker, thanks to automatically generated snapshots of the KDE source repository, which are stored in convenient archived form in the KDE FTP system. This page describes how to perform a checkout using a module snapshot.
+
Daca doriti sa creati o copie locala a unui modul din depozitul KDE, exista o modalitate de a face mai rapid acest proces folosind copii arhivate ale depozitului KDE (pe care le puteti obtine din sistemul de FTP al KDE). Aceasta pagina descrie modalitatea de creare a unei copii locale a unui modul KDE folosind o asemenea arhiva.
  
Keep in mind that these snapshots are '''real Subversion checkouts''', containing all of the required Subversion metadata.  This procedure can in fact be the quickest way to checkout a module, thanks to the abundance of FTP mirrors.
+
Nu uitati ca aceste arhive contin si dosare si fisiere folosite de catre utilitarul Subversion. Astfel, folosirea copiilor arhivate este cea mai rapida metoda de creare a unei copii locale.
  
{{note|This procedure only works if the module you want has nightly snapshots generated (most do), and if you want the '''trunk''' version of the module.}}
+
{{note|Aceasta metoda poate fi folosita doar daca modulul de care aveti nevoie este inclus in copiile arhivate realizate automat in fiecare zi si daca aveti nevoie de versiunea de dezvoltare (cea din '''/trunk/''').}}
  
== Get the snapshot ==
+
== Descarcarea arhivei ==
  
First go to [http://download.kde.org/ The KDE Mirror Redirector] and choose the best FTP server for your locationUsually this will be a server in your country/state.  Click on the link for the FTP server and navigate to the {{path|snapshots}} directory. In this directory will be a large list of KDE modules which are archived.
+
Mai intai deschideti [http://download.kde.org/ pagina de selectionare a unei imaginii a serverului KDE] si alegeti cea mai rapida imagine FTP in raport cu locatia dumneavoastra (de obicei este un server din tara/statul dumneavoastra)Urmati legatura catre acest server si intrati in dosarul {{path|snapshots}}. In this directory will be a large list of KDE modules which are archived.
  
 
You want to download the module with the name in the following format: '''kdemodule-svn.tar.bz2'''.  Go ahead and save this archive to your hard disk somewhere.  You'll need to be able to reach this location from the command line later.
 
You want to download the module with the name in the following format: '''kdemodule-svn.tar.bz2'''.  Go ahead and save this archive to your hard disk somewhere.  You'll need to be able to reach this location from the command line later.

Revision as of 11:50, 11 March 2008


Contents

Getting Started/Sources/Snapshots

Extragerea surselor KDE din copii arhivate

Daca doriti sa creati o copie locala a unui modul din depozitul KDE, exista o modalitate de a face mai rapid acest proces folosind copii arhivate ale depozitului KDE (pe care le puteti obtine din sistemul de FTP al KDE). Aceasta pagina descrie modalitatea de creare a unei copii locale a unui modul KDE folosind o asemenea arhiva.

Nu uitati ca aceste arhive contin si dosare si fisiere folosite de catre utilitarul Subversion. Astfel, folosirea copiilor arhivate este cea mai rapida metoda de creare a unei copii locale.

noframe
 
Note
Aceasta metoda poate fi folosita doar daca modulul de care aveti nevoie este inclus in copiile arhivate realizate automat in fiecare zi si daca aveti nevoie de versiunea de dezvoltare (cea din /trunk/).

Descarcarea arhivei

Mai intai deschideti pagina de selectionare a unei imaginii a serverului KDE si alegeti cea mai rapida imagine FTP in raport cu locatia dumneavoastra (de obicei este un server din tara/statul dumneavoastra). Urmati legatura catre acest server si intrati in dosarul snapshots. In this directory will be a large list of KDE modules which are archived.

You want to download the module with the name in the following format: kdemodule-svn.tar.bz2. Go ahead and save this archive to your hard disk somewhere. You'll need to be able to reach this location from the command line later.

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