Browse code

Made clang-format non necessary

neauoire authored on 27/08/2021 18:00:34
Showing 2 changed files
... ...
@@ -4,13 +4,14 @@ An assembler and emulator for the [Uxn stack-machine](https://wiki.xxiivv.com/si
4 4
 
5 5
 ## Build
6 6
 
7
-### Linux 
7
+### Linux/OS X
8 8
 
9 9
 To build the Uxn emulator, you must install [SDL2](https://wiki.libsdl.org/) for your distro. If you are using a package manager:
10 10
 
11 11
 ```sh
12 12
 sudo pacman -Sy sdl2             # Arch
13 13
 sudo apt install libsdl2-dev     # Ubuntu
14
+sudo brew sdl2                   # OS X
14 15
 ```
15 16
 
16 17
 Build the assembler and emulator by running the `build.sh` script. The assembler(`uxnasm`) and emulator(`uxnemu`) are created in the `/bin` folder.
... ...
@@ -18,6 +19,7 @@ Build the assembler and emulator by running the `build.sh` script. The assembler
18 19
 ```sh
19 20
 ./build.sh 
20 21
 	--debug # Add debug flags to compiler
22
+	--format # Format source code
21 23
 ```
22 24
 
23 25
 If you wish to build the emulator without graphics mode:
... ...
@@ -8,7 +8,7 @@ rm -f ./bin/boot.rom
8 8
 
9 9
 # When clang-format is present
10 10
 
11
-if command -v clang-format > /dev/null 2>&1
11
+if [ "${1}" = '--format' ]; 
12 12
 then
13 13
 	echo "Formatting.."
14 14
 	clang-format -i src/uxn.h