From cee3154a1d19ae2c0e6aa8f2ab0e1bf69cdad0b7 Mon Sep 17 00:00:00 2001 From: Mikhail Kurinnoi Date: Sun, 27 Nov 2022 18:25:26 +0300 Subject: [PATCH] Remove `$` symbols in README.md to better copy/paste text. --- README.md | 76 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 963787c0..fd9f73c0 100755 --- a/README.md +++ b/README.md @@ -56,44 +56,56 @@ sudo emerge astromenace **For Windows 32bit build.** Start `MSYS2` > `MSYS2 MINGW32` terminal session from `Start` menu. Install all necessary packages and download prebuilt dependencies: ``` -$ cd / -$ pacman -S git unzip mingw-w64-i686-{toolchain,make,cmake,ninja} -$ wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_32bit.zip -$ unzip ./prebuilt_dep_mingw_32bit.zip +cd ~/ +``` +``` +pacman -S git unzip mingw-w64-i686-{toolchain,make,cmake,ninja} +``` +``` +wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_32bit.zip +``` +``` +unzip ./prebuilt_dep_mingw_32bit.zip ``` **For Windows 64bit build.** Start `MSYS2` > `MSYS2 MINGW64` terminal session from `Start` menu. Install all necessary packages and download prebuilt dependencies: ``` -$ cd / -$ pacman -S git unzip mingw-w64-x86_64-{toolchain,make,cmake,ninja} -$ wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_64bit.zip -$ unzip ./prebuilt_dep_mingw_64bit.zip +cd ~/ +``` +``` +pacman -S git unzip mingw-w64-x86_64-{toolchain,make,cmake,ninja} +``` +``` +wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_64bit.zip +``` +``` +unzip ./prebuilt_dep_mingw_64bit.zip ``` - Clone git with latest source files ``` -$ git clone https://github.com/viewizard/astromenace.git +git clone https://github.com/viewizard/astromenace.git ``` - Compile game binary (game data file will be created automatically): ``` -$ mkdir ~/astromenace/build +mkdir ~/astromenace/build ``` ``` -$ cd ~/astromenace/build +cd ~/astromenace/build ``` **For Windows 32bit build:** ``` -$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_32bit +cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_32bit ``` **For Windows 64bit build:** ``` -$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_64bit +cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_64bit ``` ``` -$ cmake --build . --target install +cmake --build . --target install ``` - Create desktop shortcut or start AstroMenace ``` -$ ~/astromenace/bin/astromenace +~/astromenace/bin/astromenace ``` Note, in case of default MSYS2 path, all AstroMenace binary files will be stored into folder `C:\msys64\home\user\astromenace\bin`. You can copy this files into folder you want and remove MSYS2 from your system. @@ -113,61 +125,61 @@ gcc or clang or any compiler with full [ISO/IEC 14882:2011 (C++11)](https://www. Download and install "Command Line Tools for Xcode" or "Xcode". Install HomeBrew package manager: https://brew.sh/ ``` -$ brew install ninja cmake sdl2 git libogg libvorbis freealut freetype +brew install ninja cmake sdl2 git libogg libvorbis freealut freetype ``` #### For Ubuntu/Mint/Debian: ``` -$ sudo apt-get install g++ cmake make ninja-build libsdl2-dev libogg-dev \ - git libvorbis-dev libopenal-dev libalut-dev libfreetype6-dev +sudo apt-get install g++ cmake make ninja-build libsdl2-dev libogg-dev \ +git libvorbis-dev libopenal-dev libalut-dev libfreetype6-dev ``` #### For Mageia: ``` -$ sudo urpmi gcc-c++ ninja cmake make git libsdl2.0-devel libogg-devel \ - libvorbis-devel libopenal-devel libfreealut-devel freetype2-devel +sudo urpmi gcc-c++ ninja cmake make git libsdl2.0-devel libogg-devel \ +libvorbis-devel libopenal-devel libfreealut-devel freetype2-devel ``` #### For OpenSuse: ``` -$ sudo zypper install gcc-c++ ninja cmake make libSDL2-devel libogg-devel \ - git libvorbis-devel openal-soft-devel freealut-devel freetype2-devel +sudo zypper install gcc-c++ ninja cmake make libSDL2-devel libogg-devel \ +git libvorbis-devel openal-soft-devel freealut-devel freetype2-devel ``` #### For Fedora: ``` -$ sudo yum install gcc-c++ cmake make git SDL2-devel libogg-devel libvorbis-devel \ - ninja-build openal-soft-devel freealut-devel freetype-devel linux-libertine-fonts +sudo yum install gcc-c++ cmake make git SDL2-devel libogg-devel libvorbis-devel \ +ninja-build openal-soft-devel freealut-devel freetype-devel linux-libertine-fonts ``` #### For FreeBSD: ``` -$ sudo pkg_add -r -v gcc cmake git ninja sdl20 libogg libvorbis openal freealut freetype2 +sudo pkg_add -r -v gcc cmake git ninja sdl20 libogg libvorbis openal freealut freetype2 ``` ### 2) Clone git with latest source files ``` -$ cd ~/ +cd ~/ ``` ``` -$ git clone https://github.com/viewizard/astromenace.git +git clone https://github.com/viewizard/astromenace.git ``` ### 3) Compile game binary (game data file will be created automatically) ``` -$ mkdir ~/astromenace/build +mkdir ~/astromenace/build ``` ``` -$ cd ~/astromenace/build +cd ~/astromenace/build ``` ``` -$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release +cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release ``` ``` -$ cmake --build . --target install +cmake --build . --target install ``` ### 4) Create desktop shortcut or start AstroMenace ``` -$ ~/astromenace/bin/astromenace +~/astromenace/bin/astromenace ```