]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Repository_Access.md
Update Repository_Access
[xonotic/xonotic.wiki.git] / Repository_Access.md
index 84c57603972125e8e6512364661d7b69c796fb84..a873806241e6987bd30d52bc12a7e991ab6c573d 100644 (file)
@@ -1,36 +1,37 @@
-Repository Access and Compiling
-===============================
+Compiling and Contributing
+==========================
 
 Xonotic uses [several Git repositories](Git). The `all` script in the main repo manages them, builds Xonotic and runs it. Each repo can also contain feature branches next to the stable `master` branch, check them out for WIP features.
 
-***
-
-Setting up the development environment
---------------------------------------
+Build Requirements
+------------------
 
 Make sure you have at least 2 GB memory to compile.
 
 ### Linux
 
-**Ubuntu Dependencies**:
+Note: `curl` isn't required but it's strongly recommended for downloading maps when playing online, `wget` is not supported for this.  
+
+Note: The `all` script requires either `wget` or `curl`.
+
 
-    sudo apt-get install autoconf build-essential curl git-core libtool libgmp-dev libjpeg-turbo8-dev libsdl2-dev libxpm-dev xserver-xorg-dev zlib1g-dev
+**Ubuntu** dependencies:
 
-Note: On Debian, use `libjpeg8-dev` if `libjpeg-turbo8-dev` isn’t available in the package repositories.
+    sudo apt-get install autoconf build-essential curl git libtool libgmp-dev libjpeg-turbo8-dev libsdl2-dev libxpm-dev xserver-xorg-dev zlib1g-dev
 
-Note: `curl` isn't required but it's strongly recommended for downloading maps when playing online.
+Note: On Debian, use `libjpeg62-turbo-dev` if `libjpeg-turbo8-dev` isn’t available in the package repositories.
 
 Note: `libasound2-dev libxext-dev libxxf86vm-dev p7zip-full unzip wget x11proto-xf86vidmode-dev` might be needed but are probably already installed. `libclalsadrv-dev libsdl2-image-dev libxcb-xf86dri0-dev libxxf86dga-dev x11proto-xf86dga-dev x11proto-xf86dri-dev` should no longer be needed.
 
 **Fedora** and other **RPM based** distro dependencies:
 
-    autoconf automake gcc-c++ gmp-devel libjpeg-turbo-devel libtool SDL2-devel
+    autoconf automake gcc-c++ gmp-devel libjpeg-turbo-devel libtool SDL2-devel curl
 
 Note: `x11-proto-devel` or `xorg-x11-proto-devel` might be needed but might be already installed.
 
 **Archlinux** dependencies:
 
-    sudo pacman -S alsa-lib curl libjpeg-turbo libmodplug libpng libvorbis libxpm libxxf86dga libxxf86vm sdl2 unzip wget
+    sudo pacman -S alsa-lib curl git libjpeg-turbo libmodplug libpng libvorbis libxpm libxxf86dga libxxf86vm sdl2 unzip
 
 ### Windows
 
@@ -48,9 +49,7 @@ You can now use this shell to continue on with the guide and clone the Xonotic r
 
 You must first install **XCode** which comes on your installation DVD or can be downloaded from the Apple website. This package provides tools like **Git and GCC**, which are needed for successful checkout and compilation of Xonotic. Some versions of XCode come with Git and others don’t - if you don’t have Git after installing XCode get it here: [XCode installer](http://sourceforge.net/projects/git-osx-installer/files/)
 
-***
-
-Cloning the repository and compiling
+Cloning the Repository and Compiling
 ------------------------------------
 
 To begin downloading:
@@ -68,7 +67,7 @@ Now the game can be compiled and run with the following commands:
 
 **Note:** if you encounter en error similar to darkplaces#111, try `./all clean && ./all compile -r -0`.
 
-You can use just `./all compile -d` to create a slower unoptimized (debug) build with debug symbols but usually you want `-r` (which is also the new default if you have recent enough git).
+You can use `./all compile -d` to create a slower unoptimized build with debug symbols but usually you want `-r` (which is also the new default).
 
 The `./all run` or `./all compile` line can be followed by `dedicated` to build or run the executable for server hosting. E.g. `./all compile -r dedicated`.
 
@@ -89,9 +88,7 @@ To update your Git clone:
 
 If you run into issues with the latest version you can easily revert to an older one. Since most bugs are caused by the game code rather that the engine, you just need to downgrade that repository. Inside the main xonotic repository, use `cd data/xonotic-data.pk3dir` and then `git checkout <some older commit>`. After that go back `cd -` and `./all compile` (with the optional `-r` flag).
 
-***
-
-Contributing and getting write access
+Contributing and Getting Write Access
 -------------------------------------
 
 Cloning (one of) our repos and submitting MRs from there (as in any other project) works but you won't be able to use our CI setup for the data repo (which seems to need a custom runner). It's therefore a good idea to join the Xonotic group and get push access - then you can create branches in our repos and use our CI.
@@ -149,13 +146,13 @@ Starts the Xonotic client
 
 Starts a Xonotic dedicated server
 
-General contributor guidelines
+General Contributor Guidelines
 ------------------------------
 
 1.  Before creating your local branch and committing to it, make sure you’ve configured your user settings such as your name which will display in the logs (in TortoiseGit: Settings > Git > Config).
 2.  Try naming your branch myname/mychange for each patch. For instance, if your name is Alex and the change you are committing is a menu fix, use something like alex/menufix.
 
-Further git information
+Further Git Information
 -----------------------
 
 About tracking remote branches: