UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 IP: 83.129.0.75 URI: http://wesnoth.slack.it/?WescampInstructions - - - - - Index: WescampInstructions =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/WescampInstructions,v retrieving revision 1.21 diff -u -r1.21 WescampInstructions --- WescampInstructions 11 Jun 2005 17:06:37 -0000 1.21 +++ WescampInstructions 8 Aug 2005 15:49:34 -0000 @@ -56,7 +56,8 @@ - Type in 'pwd' to see your current directory. - Type in 'ls' to list the contents of the current directory. - Type in 'cd DIRECTORYNAME' to change to that directory (which must be a subdirectory of your current directory). - - For example, if you are currently in your home directory, typing 'cd Preferences' will change to the Preferences subdirectory. + - For example, if you are currently in your home directory, typing 'cd Preferences' will change to the Preferences +subdirectory. - The slash / character is the root (or top) level directory on your computer. Typing 'cd /' brings you to the top level. - The tilde ~ character is a shortcut for your home folder. - For example, 'cd ~/Library' will send you to your home directory's Library subdirectory. @@ -97,7 +98,8 @@ to copy the changed files over to the Liberty-po directory and then send those changes to berlios.de. -Here is a shell script you can use to automate the process. Copy this text into a text editor and call it something simple like 'commit' (save it in +Here is a shell script you can use to automate the process. Copy this text into a text editor and call it something +simple like 'commit' (save it in the data/campaigns directory): #!/bin/csh -f @@ -121,7 +123,8 @@ cd ~/Library/Preferences/Wesnoth/data/campaigns ./commit which will run the following commands as a shell script (or batch file, if that helps). You can also type in each -command individually (don't type in the #!/bin... command or echo commands). You will need to type in your berlios.de password one or more times (it +command individually (don't type in the #!/bin... command or echo commands). You will need to type in your berlios.de +password one or more times (it asks me 3 times). ||Adding new files to Wescamp|| @@ -129,15 +132,18 @@ If you've written new scenarios or added other things, there's one additional step. After copying them into your Wescamp directory, you'll have to type svn add FILENAME -while being in the directory. You only have to do this once. This will mark the file as belonging to the campaign (for SVN) and the next svn -commit will include it. Here is an example, assuming a new scenario was created and already copied over to the appropriate Wescamp directory. +while being in the directory. You only have to do this once. This will mark the file as belonging to the campaign (for +SVN) and the next svn +commit will include it. Here is an example, assuming a new scenario was created and already copied over to the +appropriate Wescamp directory. cd ~/Library/Preferences/Wesnoth/data/campaigns/Liberty-po/Liberty/scenarios svn add NEWSCENARIOFILE.cfg ||Updating your Translations|| A similar process is used to download updated translations and move the files over to your campaign folder. Here is a -shell script to do the job. Call it something simple like 'get' and save it in the /data/campaigns directory. Don't forget to add execute permission for +shell script to do the job. Call it something simple like 'get' and save it in the /data/campaigns directory. Don't +forget to add execute permission for yourself. #!/bin/csh -f @@ -185,6 +191,60 @@ utils.cfg or deaths.cfg file. You should adapt the process to commit ALL files that contain translatable text. +||Short version|| +1) Get yourself an account at developer.berlios.de +2) Log in into your account and change to this page: http://developer.berlios.de/account/editsshkeys.php +3) Create (in your terminal/shell, not the browser) the needed key. You do this with the following steps: +* ssh-keygen -t rsa +4) open the created file with a texteditor like vim. The file should be in this folder: ~/.ssh/id_rsa.pub +5) copy the strings from that file to the website you already opend. Somewhere in the middle there is a textbox. The +result should look like this: ssh-rsa REALLYMANYWEIRDCOMBINEDCHARSTHATDONOTMAKEANYSENSEATALL [EMAIL PROTECTED] +6) After you copied your key into that field hit the button called "Update". It will take some time until your key is +update (up to six hours). +7) The work at berlios is finished. Now you work on your Computer. First you need to fetch the programm called svn. You +find it here: http://subversion.tigris.org/project_packages.html Scroll down to your platform. The following is mac +specific: Please use the version that does not require fink. Mount the .dmg. Now click the installer to install the +file. You will need to add something to your path variable. That is also described in the readme, but i'll describe it +in here, too: +* after installing change back to the terminal and do this: cd /etc +* now open the file 'profile' with an editor (you can also use a different editor than vim, it is your choise)as root: +sudo vim profile +* there you will find a line that starts with PATH=". In that line you need to put :/usr/local/bin at the end. After +adding this, this line looks like this for me: PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin" +* now you installed SVN and you can go on. After reopening the Terminal you should be able to type 'svn' (without the +colons) and get a result like this: "Type 'svn help' for usage." +8) After svn is installed and setup correctly you can go on with fetching the files. For this you open up the Terminal, +change into the folder you want (you can also do this directly in your homw folder, it should harm nothing) and type the +follwoing things: (you will download ALL the campaigns that are in wescamp!) +* export SVN_SSH="ssh -l BERLIOSUSERNAME" +* svn checkout svn+ssh://svn.berlios.de/svnroot/repos/wescamp-i18n +You will be asked for the password of your Account at berlios. Type in the password you also need for the login at +developer.berlios.de. Afterwards it will ask you for your passphrase for your ssh key if you did specify one. If you did +not specify a passphrase it dhould not ask any more questions. Congratulaions, you downloaded all the files for the +first time. +9) You will now have a new folder with the name "wescamp-i18n". In there are all the campaigns. cd into the dir with +your campaign. This could be cd wescamp-i18n/Two_Brothers-po/Two_Brothers. You can put your files into their (the normal +folderstructure like for the campaignserver). Afterwards you can simply commit the files with this command: +* svn ci filename +This only works if the file already exists at berlios. If the file is new you need to do this: +* svn add filename +* svn ci filename +You will be asked for a password or, if you specified one, for your passphrase. Before you commit it, your default +texteditor will open up and you can enter your commitmessage. On a mac this will be vim. To be able to insert text, hit +'i'. In the bottom-left corner it will say insert. Write your text (eventually with "String changes" so that Torangan +knows he has to update), hit 'esc' and type ':x' to commit. If you do want to abort you need to hit ':q'. Now you +uploaded/added files to the rep. +10) The only thing left now is to integrate the translations into the package at the campaignserver. For this you only +need to copy the stuff from the folder "wescamp-i18n/Two_Brothers-po/Two_Brothers/translations" to the place you got +your campaign that you upload. You need to have the complete folder translations in there. +11) After getting the whole bunch of files for the first time you do NOT need to update the folder with the command "svn +checkout" but with this one: +* export SVN_SSH="ssh -l BERLIOSUSERNAME" +* svn update svn+ssh://svn.berlios.de/svnroot/repos/wescamp-i18n +You always need to start that from the same folder, eg the home folder. + +That is all you should need to know about updating and downloading stuff from and to wescamp. + ||See Also|| * WesCamp
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
